CVSROOT:        /cvs
Module name:    src
Changes by:     e...@cvs.openbsd.org    2011/12/19 12:57:25

Modified files:
        usr.sbin/smtpd : queue_backend.c 

Log message:
fix/improve envelope_validate():
- return an informative error string if the envelope is invalid.
- take the envelope id as a parameter and make sure it matches.
- do not expect the errorline to start with an SMTP response code,
as this is not always the case: a temporary failure with mda would
cause the envelope to be marked as corrupted. Instead, just make sure
that all string fields are actual strings to prevent overflows later.

ok gilles@ chl@

Reply via email to