diff --git a/assuan/ChangeLog b/assuan/ChangeLog index 9b08c2b4..0c8a4df6 100644 --- a/assuan/ChangeLog +++ b/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/assuan/assuan-handler.c b/assuan/assuan-handler.c index ff8024aa..614f83d8 100644 --- a/assuan/assuan-handler.c +++ b/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)