summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kibbey <bjk@luxsci.net>2020-11-12 11:09:59 -0800
committerBen Kibbey <bjk@luxsci.net>2020-11-12 11:09:59 -0800
commit0dd8ffbd32fe62b8e4bf565cbd7a9272a2891d01 (patch)
tree0eb536a7ffe429ebd35546f5b5104f5c35781134
parent103c1e7f86de3f40c4f49e67b14376aad58ef81b (diff)
downloadlibassuan-0dd8ffbd32fe62b8e4bf565cbd7a9272a2891d01.tar.gz
Fix crash when logging.
* src/assuan-logging.c (_assuan_log_control_channel): Use gpgrt_malloc. Signed-off-by: Ben Kibbey <bjk@luxsci.net>
-rw-r--r--src/assuan-logging.c2
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
{