summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-08-28 10:22:39 +0200
committerWerner Koch <wk@gnupg.org>2015-08-28 10:22:39 +0200
commit5a52404c704d0e99629a2db79dda17e3b95c9680 (patch)
tree77a78eb338dafd130862907b477381f7ddefa140 /doc
parentd4bef26a49879761867ad6d57113341915db6acf (diff)
downloadlibassuan-5a52404c704d0e99629a2db79dda17e3b95c9680.tar.gz
Read up remaining lines in assuan_inquire after reaching MAXLEN
* src/assuan-inquire.c (assuan_inquire): Clear return args on error. Read up remaining lines after MAXLEN has been hit. -- If we would stop immediately at MAXLEN, as we did, the client would continue to send data which the server may consider as new Assuan commands. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/assuan.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/assuan.texi b/doc/assuan.texi
index 1c3c2ca..14f2cf0 100644
--- a/doc/assuan.texi
+++ b/doc/assuan.texi
@@ -1763,8 +1763,8 @@ the required data (@var{keyword}). All other parameters may be
On success the result is stored in a newly allocated buffer stored at
@var{r_buffer}. The length of the data is stored at @var{r_length}.
-If @var{maxlen} has not been given as @code{0}, it describes an upper
-size limited of the expected data. If the client returns too much
+If @var{maxlen} has not been given as @code{0}, it specifies an upper
+size limit of the expected data. If the client returns too much
data the function fails and an error with the error code
@code{GPG_ERR_ASS_TOO_MUCH_DATA} will be returned.
@end deftypefun