From 2e21bad416b831a5702ff230b30e1a71f4223119 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 25 Jun 2001 07:37:16 +0000 Subject: Emergency core-dump fix. svn path=/trunk/; revision=3384 --- cram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cram.c b/cram.c index da1bade5..e2002eea 100644 --- a/cram.c +++ b/cram.c @@ -87,7 +87,7 @@ int do_cram_md5 (int sock, char *command, struct query *ctl, char *strip) /* caller may specify a response prefix we should strip if present */ respdata = buf1; - if (strncmp(buf1, strip, strlen(strip)) == 0) + if (strip && strncmp(buf1, strip, strlen(strip)) == 0) respdata += strlen(strip); len = from64tobits (msg_id, respdata); -- cgit v1.2.3