estream: Fix deadlock in s_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 14:11:04 +0000 (16:11 +0200)
* src/estream.c (es_fileno_unlocked): Call the unlocked functions.

src/estream.c

index 88d9ffc..d418e28 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)
     {