diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2015-10-14 20:57:18 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2015-10-14 20:57:18 +0000 |
commit | 5a463062bcfaf300d67dce506023abe674158d0d (patch) | |
tree | 36cf791bccb6c12a96e1a1c9a935b9f8d06bb15b | |
parent | 048ea7933f9885f09dda6e14c4c25e2446867a17 (diff) |
we dump esc_code if we have an esc_class, code may be (and actually was)
confused as a pasto, so add a comment to make it clear that this is not
an error
-rw-r--r-- | usr.sbin/smtpd/envelope.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/envelope.c b/usr.sbin/smtpd/envelope.c index ed8b28b49f3..7faf7c7899b 100644 --- a/usr.sbin/smtpd/envelope.c +++ b/usr.sbin/smtpd/envelope.c @@ -1,4 +1,4 @@ -/* $OpenBSD: envelope.c,v 1.31 2015/10/09 09:56:28 gilles Exp $ */ +/* $OpenBSD: envelope.c,v 1.32 2015/10/14 20:57:17 gilles Exp $ */ /* * Copyright (c) 2013 Eric Faurot <eric@openbsd.org> @@ -893,7 +893,8 @@ ascii_dump_field(const char *field, const struct envelope *ep, } if (strcasecmp(field, "esc-code") == 0) { - if (ep->esc_code) + /* this is not a pasto, we dump esc_code if esc_class is !0 */ + if (ep->esc_class) return ascii_dump_uint8(ep->esc_code, buf, len); return 1; } |