diff options
author | Marcus Brinkmann <mb@g10code.com> | 2001-12-13 21:16:21 +0100 |
---|---|---|
committer | Marcus Brinkmann <mb@g10code.com> | 2001-12-13 21:16:21 +0100 |
commit | d7db0736fd39b0ac4ad165e703deec309b6a0834 (patch) | |
tree | 2119eb333bd8e10ed8495be7828282a99d16dbe1 /assuan | |
parent | * keylist.c (list_cert_colon): Print alternative names of subject (diff) | |
download | gnupg2-d7db0736fd39b0ac4ad165e703deec309b6a0834.tar.xz gnupg2-d7db0736fd39b0ac4ad165e703deec309b6a0834.zip |
2001-12-13 Marcus Brinkmann <marcus@gnu.org>
* assuan-buffer.c (assuan_read_line): Fix order of execution to
get correct return values.
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.
Diffstat (limited to 'assuan')
-rw-r--r-- | assuan/ChangeLog | 10 | ||||
-rw-r--r-- | assuan/assuan-buffer.c | 6 | ||||
-rw-r--r-- | assuan/assuan-handler.c | 2 |
3 files changed, 16 insertions, 2 deletions
diff --git a/assuan/ChangeLog b/assuan/ChangeLog index 9b08c2b4c..8d05c0e92 100644 --- a/assuan/ChangeLog +++ b/assuan/ChangeLog @@ -1,3 +1,13 @@ +2001-12-13 Marcus Brinkmann <marcus@gnu.org> + + * assuan-buffer.c (assuan_read_line): Fix order of execution to + get correct return values. + +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 diff --git a/assuan/assuan-buffer.c b/assuan/assuan-buffer.c index 50900c425..ee085d0c1 100644 --- a/assuan/assuan-buffer.c +++ b/assuan/assuan-buffer.c @@ -172,11 +172,15 @@ _assuan_read_line (ASSUAN_CONTEXT ctx) AssuanError assuan_read_line (ASSUAN_CONTEXT ctx, char **line, size_t *linelen) { + AssuanError err; + if (!ctx) return ASSUAN_Invalid_Value; + + err = _assuan_read_line (ctx); *line = ctx->inbound.line; *linelen = ctx->inbound.linelen; - return _assuan_read_line (ctx); + return err; } diff --git a/assuan/assuan-handler.c b/assuan/assuan-handler.c index ff8024aa0..614f83d8a 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) |