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: Sun Sep 12 2010 - 17:38:31 CDT


CVSROOT: /cvs
Module name: src
Changes by: gillescvs.openbsd.org 2010/09/12 16:38:31

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

Log message:
oga spotted a bug in lka_expand() which caused it to miscalculate the
length of its expand buffer. this commit introduces a new lka_expand()
that has been simplified, that fixes the bug and that is more robust.
callers of lka_expand() can now determine that it has failed and throw
the recipient at session time.

lka_expand() rewrite by oga, changes around it by me, tested on a few
different setups but no feedback from tech so ... let me know if it's
breaking something for you