From 24031e600c0b5b08fc5d2d6594201797641d10d6 Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Thu, 13 Jan 2005 16:22:42 +0000 Subject: [PATCH] Fix what I broke when adding the 127.0.0.2 test-harness feature. --- src/src/smtp_in.c | 6 ++++-- 1 file 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 */ -- 2.30.2