aboutsummaryrefslogtreecommitdiffstats
path: root/agent/pkdecrypt.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-05-14 08:31:46 +0000
committerWerner Koch <[email protected]>2019-05-14 08:31:46 +0000
commit54e96c6fd262bd0090fec836c97d7fdb04bd6129 (patch)
tree93ead3e2aac01b8317d18a31b980f7d7fec5e4e2 /agent/pkdecrypt.c
parentagent: correct length for uri and comment on 64-bit big-endian platforms (diff)
downloadgnupg-54e96c6fd262bd0090fec836c97d7fdb04bd6129.tar.gz
gnupg-54e96c6fd262bd0090fec836c97d7fdb04bd6129.zip
agent: Replace most assert by log_assert.
--
Diffstat (limited to 'agent/pkdecrypt.c')
-rw-r--r--agent/pkdecrypt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/agent/pkdecrypt.c b/agent/pkdecrypt.c
index 06a8e0b6f..a0ced2f55 100644
--- a/agent/pkdecrypt.c
+++ b/agent/pkdecrypt.c
@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#include <assert.h>
#include <unistd.h>
#include <sys/stat.h>
@@ -119,10 +118,10 @@ agent_pkdecrypt (ctrl_t ctrl, const char *desc_text,
gcry_sexp_dump (s_plain);
}
len = gcry_sexp_sprint (s_plain, GCRYSEXP_FMT_CANON, NULL, 0);
- assert (len);
+ log_assert (len);
buf = xmalloc (len);
len = gcry_sexp_sprint (s_plain, GCRYSEXP_FMT_CANON, buf, len);
- assert (len);
+ log_assert (len);
if (*buf == '(')
put_membuf (outbuf, buf, len);
else