OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Gilles Chehade (gillescvs.openbsd.org)
Date: Tue Feb 17 2009 - 18:17:39 CST


CVSROOT: /cvs
Module name: src
Changes by: gillescvs.openbsd.org 2009/02/17 17:17:39

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

Log message:
smtp_accept() now requests from lka that it performs the hostname lookup
and inserts the session into the session tree. session_init() is called
only when we receive the resolution answer.

this fixes a race condition that would sometimes cause the hostname to
appear as "<unknown>" in headers just because dns was lagging, and it
unbreaks ssmtp support which suffered from th very same race condition.