diff options
author | Ben Kibbey <[email protected]> | 2020-11-12 19:09:59 +0000 |
---|---|---|
committer | Ben Kibbey <[email protected]> | 2020-11-12 19:09:59 +0000 |
commit | 0dd8ffbd32fe62b8e4bf565cbd7a9272a2891d01 (patch) | |
tree | 0eb536a7ffe429ebd35546f5b5104f5c35781134 | |
parent | Post release updates (diff) | |
download | libassuan-0dd8ffbd32fe62b8e4bf565cbd7a9272a2891d01.tar.gz libassuan-0dd8ffbd32fe62b8e4bf565cbd7a9272a2891d01.zip |
Fix crash when logging.
* src/assuan-logging.c (_assuan_log_control_channel): Use gpgrt_malloc.
Signed-off-by: Ben Kibbey <[email protected]>
-rw-r--r-- | src/assuan-logging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assuan-logging.c b/src/assuan-logging.c index 8ee6aa2..766bd82 100644 --- a/src/assuan-logging.c +++ b/src/assuan-logging.c @@ -252,7 +252,7 @@ _assuan_log_control_channel (assuan_context_t ctx, int outbound, if (nbytes > maxbytes) nbytes = maxbytes; - if (!(outbuf = malloc (50 + 3*nbytes + 60 + 3 + 1))) + if (!(outbuf = gpgrt_malloc (50 + 3*nbytes + 60 + 3 + 1))) res = -1; else { |