mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-23 15:07:03 +01:00
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.
This commit is contained in:
parent
dda2440aea
commit
d7db0736fd
@ -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>
|
2001-12-12 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* assuan-connect.c (assuan_pipe_connect): Implemented the inital
|
* assuan-connect.c (assuan_pipe_connect): Implemented the inital
|
||||||
|
@ -172,11 +172,15 @@ _assuan_read_line (ASSUAN_CONTEXT ctx)
|
|||||||
AssuanError
|
AssuanError
|
||||||
assuan_read_line (ASSUAN_CONTEXT ctx, char **line, size_t *linelen)
|
assuan_read_line (ASSUAN_CONTEXT ctx, char **line, size_t *linelen)
|
||||||
{
|
{
|
||||||
|
AssuanError err;
|
||||||
|
|
||||||
if (!ctx)
|
if (!ctx)
|
||||||
return ASSUAN_Invalid_Value;
|
return ASSUAN_Invalid_Value;
|
||||||
|
|
||||||
|
err = _assuan_read_line (ctx);
|
||||||
*line = ctx->inbound.line;
|
*line = ctx->inbound.line;
|
||||||
*linelen = ctx->inbound.linelen;
|
*linelen = ctx->inbound.linelen;
|
||||||
return _assuan_read_line (ctx);
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -471,7 +471,7 @@ assuan_get_active_fds (ASSUAN_CONTEXT ctx, int what,
|
|||||||
{
|
{
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
if (ctx || fdarraysize < 2 || what < 0 || what > 1)
|
if (!ctx || fdarraysize < 2 || what < 0 || what > 1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!what)
|
if (!what)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user