[net.bugs.4bsd] Sendmail/Smtp bug.

steveh@hammer.UUCP (Stephen Hemminger) (11/21/84)

Description:
	User SMTP in sendmail sometimes mysteriously core dumps when
	sending mail.

Repeat-by:
	Difficult to reproduce, I just found the core dump
	(in /usr/spool/mqueue) and followed the back trace.

Fix:
	smtpquit() not called with correct arguments.
	Here are the changes (line #'s vary):

***************
*** 176,182
  
  	/* signal a temporary failure */
    tempfail:
! 	smtpquit("temp fail",m);
  	return (EX_TEMPFAIL);
  
  	/* signal service unavailable */

--- 176,182 -----
  
  	/* signal a temporary failure */
    tempfail:
! 	smtpquit(m);
  	return (EX_TEMPFAIL);
  
  	/* signal service unavailable */
***************
*** 181,187
  
  	/* signal service unavailable */
    unavailable:
! 	smtpquit("service unavailable",m);
  	return (EX_UNAVAILABLE);
  }
  

--- 181,187 -----
  
  	/* signal service unavailable */
    unavailable:
! 	smtpquit(m);
  	return (EX_UNAVAILABLE);
  }