aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sm/certdump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sm/certdump.c b/sm/certdump.c
index edee76fa2..ede12106f 100644
--- a/sm/certdump.c
+++ b/sm/certdump.c
@@ -658,6 +658,9 @@ format_name_writer (void *cookie, const void *buffer, size_t size)
struct format_name_cookie *c = cookie;
char *p;
+ if (!buffer) /* Flush. */
+ return 0; /* (Actually we could use SIZE because that should be 0 too.) */
+
if (!c->buffer)
{
p = xtrymalloc (size + 1 + 1);