aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-06-25 07:37:16 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-06-25 07:37:16 +0000
commit2e21bad416b831a5702ff230b30e1a71f4223119 (patch)
treea5ce2bfa36c368a012f7370c8115dc30e48b8ceb
parent1663c72036e4b6dab622ea3998fcc77520f9adc9 (diff)
downloadfetchmail-2e21bad416b831a5702ff230b30e1a71f4223119.tar.gz
fetchmail-2e21bad416b831a5702ff230b30e1a71f4223119.tar.bz2
fetchmail-2e21bad416b831a5702ff230b30e1a71f4223119.zip
Emergency core-dump fix.
svn path=/trunk/; revision=3384
-rw-r--r--cram.c2
1 files changed, 1 insertions, 1 deletions
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);