diff options
author | 2016-08-20 20:47:08 +0000 | |
---|---|---|
committer | 2016-08-20 20:47:08 +0000 | |
commit | 47a92630dd174ad0309492826f045c6d2eee577d (patch) | |
tree | 46e9d6779c13359bcc8fd2d8be4294688cbe5cc1 | |
parent | add "armv7" to the Dt line; (diff) | |
download | wireguard-openbsd-47a92630dd174ad0309492826f045c6d2eee577d.tar.xz wireguard-openbsd-47a92630dd174ad0309492826f045c6d2eee577d.zip |
Properly initialize the message parser. fix a regression where the
message headers would not be altered as expected.
ok gilles@
-rw-r--r-- | usr.sbin/smtpd/rfc2822.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/rfc2822.c b/usr.sbin/smtpd/rfc2822.c index 0b80f352481..38c15428aac 100644 --- a/usr.sbin/smtpd/rfc2822.c +++ b/usr.sbin/smtpd/rfc2822.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rfc2822.c,v 1.7 2016/02/04 22:35:17 eric Exp $ */ +/* $OpenBSD: rfc2822.c,v 1.8 2016/08/20 20:47:08 eric Exp $ */ /* * Copyright (c) 2014 Gilles Chehade <gilles@poolp.org> @@ -138,6 +138,7 @@ rfc2822_parser_init(struct rfc2822_parser *rp) TAILQ_INIT(&rp->header.lines); rfc2822_header_default_callback(rp, hdr_dflt_cb, NULL); rfc2822_body_callback(rp, body_dflt_cb, NULL); + rfc2822_parser_reset(rp); } void |