estream: Fix deadlock in es_fileno.
authorWerner Koch <wk@gnupg.org>
Tue, 15 Apr 2014 14:40:48 +0000 (16:40 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 30 Apr 2014 19:14:28 +0000 (21:14 +0200)
* src/estream.c (es_fileno_unlocked): Call the unlocked functions.

common/estream.c

index 33195b7..a20d6d4 100644 (file)
@@ -3300,7 +3300,7 @@ es_fileno_unlocked (estream_t stream)
 {
   es_syshd_t syshd;
 
-  if (es_syshd (stream, &syshd))
+  if (es_syshd_unlocked (stream, &syshd))
     return -1;
   switch (syshd.type)
     {