diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-10-15 19:23:30 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-10-15 19:23:30 +0000 |
commit | 079446c15707ae1d0d9447a364f916539933b235 (patch) | |
tree | 5bdd6dd7d4fdca64301c2d0c0db0a5802c6aee80 /usr.sbin/smtpd | |
parent | 0ae4b15939745b80ec2e87c89c0bc020e290c074 (diff) |
- allow empty headers
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/rfc2822.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/rfc2822.c b/usr.sbin/smtpd/rfc2822.c index 61c7b7696c8..023224d46af 100644 --- a/usr.sbin/smtpd/rfc2822.c +++ b/usr.sbin/smtpd/rfc2822.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rfc2822.c,v 1.1 2014/10/12 16:19:30 gilles Exp $ */ +/* $OpenBSD: rfc2822.c,v 1.2 2014/10/15 19:23:29 gilles Exp $ */ /* * Copyright (c) 2014 Gilles Chehade <gilles@poolp.org> @@ -75,8 +75,8 @@ parser_feed_header(struct rfc2822_parser *rp, char *line) struct rfc2822_line *hdrline; char *pos; - /* new header */ - if (! isspace(*line)) { + /* new header */ + if (! isspace(*line) && *line != '\0') { rp->in_hdr = 1; if ((pos = strchr(line, ':')) == NULL) return 0; |