aboutsummaryrefslogtreecommitdiffstats
path: root/src/context.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-06-26 10:04:20 +0000
committerWerner Koch <[email protected]>2015-06-26 10:04:20 +0000
commit0da6afa864cfd68333941d6332d762c82928946c (patch)
treea3035647b585a04723c2130124e45a12fbf473a4 /src/context.c
parentFix documentation for assuan_inquire. (diff)
downloadlibassuan-0da6afa864cfd68333941d6332d762c82928946c.tar.gz
libassuan-0da6afa864cfd68333941d6332d762c82928946c.zip
Do not segv if NULL is passed for CTX in sendfd and receivefd.
* src/assuan-buffer.c (assuan_sendfd): Check that CTX is not NULL. (assuan_receivefd): Ditto. -- This change is to align the behaviour with that of assuan_send_data. Suggested-by: Andre Heinecke. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/context.c')
-rw-r--r--src/context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/context.c b/src/context.c
index 62b7f57..147edae 100644
--- a/src/context.c
+++ b/src/context.c
@@ -183,8 +183,8 @@ void assuan_set_io_monitor (assuan_context_t ctx,
/* Store the error in the context so that the error sending function
- can take out a descriptive text. Inside the assuan code, use the
- macro set_error instead of this function. */
+ can take out a descriptive text. Inside the assuan code, use the
+ macro set_error instead of this function. */
gpg_error_t
assuan_set_error (assuan_context_t ctx, gpg_error_t err, const char *text)
{