CVSROOT:        /cvs
Module name:    src
Changes by:     gil...@cvs.openbsd.org  2009/05/31 12:34:48

Modified files:
        usr.sbin/smtpd : mta.c smtp_session.c 

Log message:
when entering mta_connect() reset session fd to -1
when connect timesout and we close the fd, reset session fd to -1
in session_destroy(), only attempt to close session fd if != -1

fixes a fatal in session_destroy() which happened because we closed a fd
after a timeout, but the session still assumed the fd to be opened.

Reply via email to