From b8d89b82656d956d42323a81f504e060c4dd35af Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Thu, 30 Dec 2010 10:09:37 -0800 Subject: [PATCH] Handle missing : in write_one_header debug statement. Closes #3483 --- sendlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendlib.c b/sendlib.c index 8297ad5d9..95d623308 100644 --- a/sendlib.c +++ b/sendlib.c @@ -1799,7 +1799,7 @@ static int write_one_header (FILE *fp, int pfxw, int max, int wraplen, else { t = strchr (start, ':'); - if (t > end) + if (!t || t > end) { dprint (1, (debugfile, "mwoh: warning: header not in " "'key: value' format!\n")); -- 2.40.0