diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-01-13 16:22:42 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-01-13 16:22:42 +0000 |
commit | 24031e600c0b5b08fc5d2d6594201797641d10d6 (patch) | |
tree | 6f180ce770ab935314b14cb0f1279a1348bc9c18 /src | |
parent | 00f00ca5c40d7deec2a8eddb9153b47830554b83 (diff) |
Fix what I broke when adding the 127.0.0.2 test-harness feature.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/smtp_in.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 */ |