Sendmail/Smtp bug.

Stephen Hemminger steveh at hammer.UUCP
Thu Nov 22 03:37:57 AEST 1984


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);
  }



More information about the Comp.bugs.4bsd.ucb-fixes mailing list