From: Philip Hazel Date: Thu, 13 Jan 2005 16:22:42 +0000 (+0000) Subject: Fix what I broke when adding the 127.0.0.2 test-harness feature. X-Git-Tag: exim-4_50~30 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/24031e600c0b5b08fc5d2d6594201797641d10d6 Fix what I broke when adding the 127.0.0.2 test-harness feature. --- diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 063d74a96..62cf4b28f 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/smtp_in.c,v 1.9 2005/01/13 16:15:53 ph10 Exp $ */ +/* $Cambridge: exim/src/src/smtp_in.c,v 1.10 2005/01/13 16:22:42 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -1125,7 +1125,9 @@ uschar *p, *s, *ss; 127.0.0.2 (sic), have a short delay. This makes it possible to test handling of input sent too soon (before the banner is output). */ -if (running_in_test_harness && Ustrcmp(sender_host_address, "127.0.0.2") == 0) +if (running_in_test_harness && + sender_host_address != NULL && + Ustrcmp(sender_host_address, "127.0.0.2") == 0) sleep(1); /* Default values for certain variables */