[exim-cvs] cvs commit: exim/exim-src/src smtp_in.c

Etusivu
Poista viesti
Vastaa
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: exim-cvs
Aihe: [exim-cvs] cvs commit: exim/exim-src/src smtp_in.c
ph10 2005/01/13 16:22:42 GMT

  Modified files:
    exim-src/src         smtp_in.c 
  Log:
  Fix what I broke when adding the 127.0.0.2 test-harness feature.


  Revision  Changes    Path
  1.10      +3 -1      exim/exim-src/src/smtp_in.c


  Index: smtp_in.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/smtp_in.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- smtp_in.c    13 Jan 2005 16:15:53 -0000    1.9
  +++ smtp_in.c    13 Jan 2005 16:22:42 -0000    1.10
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/smtp_in.c,v 1.9 2005/01/13 16:15:53 ph10 Exp $ */
  +/* $Cambridge: exim/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 @@
   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 */