[comp.mail.sendmail] bug in sendmail 5.64

kessler@hacketorium.Eng.Sun.COM (Tom Kessler) (07/12/90)

In sendmail 5.64 a new field name q_ruser was added to the address structure
(found in sendmail.h).  The initialization of the variable NullAddress
(in main.c) was not updated to reflect this.  This can cause some problems
when you go to look at the q_host field or expect the q_ruser field to be
NULL.
Here's the diff:

diff -c4 main.c main.c.ORIG | more
*** main.c      Wed Jul 11 13:32:06 1990
--- main.c.ORIG Thu Jul  5 17:55:51 1990
***************
*** 77,85 ****
  char          *FullName;      /* sender's full name */
  ENVELOPE      BlankEnvelope;  /* a "blank" envelope */
  ENVELOPE      MainEnvelope;   /* the envelope around the basic letter */
  ADDRESS               NullAddress =   /* a null address */
!               { "", "", NULL, "" };
  
  /*
  **  Pointers for setproctitle.
  **    This allows "ps" listings to give more useful information.
--- 77,85 ----
  char          *FullName;      /* sender's full name */
  ENVELOPE      BlankEnvelope;  /* a "blank" envelope */
  ENVELOPE      MainEnvelope;   /* the envelope around the basic letter */
  ADDRESS               NullAddress =   /* a null address */
!               { "", "", "" };
  
  /*
  **  Pointers for setproctitle.
  **    This allows "ps" listings to give more useful information.

--Tom Kessler (kessler@Eng.sun.com)
  Sun Microsystems Inc.