* assuan-handler.c (assuan_get_active_fds): Fixed silly bug,
authorWerner Koch <wk@gnupg.org>
Thu, 13 Dec 2001 17:37:04 +0000 (17:37 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 13 Dec 2001 17:37:04 +0000 (17:37 +0000)
pretty obvious that nobody ever tested this function.

assuan/ChangeLog
assuan/assuan-handler.c

index 9b08c2b4c13db51c3963f57300064d18c17d1af5..0c8a4df6c13a2bbb079a0794a3dbab87cd09d84a 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-13  Werner Koch  <wk@gnupg.org>
+
+       * assuan-handler.c (assuan_get_active_fds): Fixed silly bug,
+       pretty obvious that nobody ever tested this function.
+
 2001-12-12  Werner Koch  <wk@gnupg.org>
 
        * assuan-connect.c (assuan_pipe_connect): Implemented the inital
index ff8024aa00bf06cf633d57fb107fda64ca68566d..614f83d8a588c9b3ad70d27645636d64dd4bead8 100644 (file)
@@ -471,7 +471,7 @@ assuan_get_active_fds (ASSUAN_CONTEXT ctx, int what,
 {
   int n = 0;
 
-  if (ctx || fdarraysize < 2 || what < 0 || what > 1)
+  if (!ctx || fdarraysize < 2 || what < 0 || what > 1)
     return -1;
 
   if (!what)