CVSROOT:        /cvs
Module name:    src
Changes by:     gil...@cvs.openbsd.org  2009/09/12 03:50:31

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

Log message:
fix a wrong computation in session_readline() where the length of line was
deduced from the buffer size prior and after evbuffer_readline() call. the
problem is that this accounts for the characters which evbuffer_readline()
removed and we do not know how many they were (\n, \r\n ..). fix just does
a strlen() call of line which is a bit slower but way safer.

This could very well fix the broken headers issue some people reported

Reply via email to