From 0dd8ffbd32fe62b8e4bf565cbd7a9272a2891d01 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Thu, 12 Nov 2020 11:09:59 -0800 Subject: Fix crash when logging. * src/assuan-logging.c (_assuan_log_control_channel): Use gpgrt_malloc. Signed-off-by: Ben Kibbey --- src/assuan-logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.1