From c58f06831c97f83cf2113dfc52e568298cfe1d59 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 13 Dec 2001 17:37:04 +0000 Subject: [PATCH] * assuan-handler.c (assuan_get_active_fds): Fixed silly bug, pretty obvious that nobody ever tested this function. --- trunk/assuan/ChangeLog | 5 +++++ trunk/assuan/assuan-handler.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/assuan/ChangeLog b/trunk/assuan/ChangeLog index 9b08c2b..0c8a4df 100644 --- a/trunk/assuan/ChangeLog +++ b/trunk/assuan/ChangeLog @@ -1,3 +1,8 @@ +2001-12-13 Werner Koch + + * assuan-handler.c (assuan_get_active_fds): Fixed silly bug, + pretty obvious that nobody ever tested this function. + 2001-12-12 Werner Koch * assuan-connect.c (assuan_pipe_connect): Implemented the inital diff --git a/trunk/assuan/assuan-handler.c b/trunk/assuan/assuan-handler.c index ff8024a..614f83d 100644 --- a/trunk/assuan/assuan-handler.c +++ b/trunk/assuan/assuan-handler.c @@ -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) -- 2.26.2