From: gilles Date: Fri, 9 Oct 2015 09:56:28 +0000 (+0000) Subject: if enhanced status class is not set, enhanced status code is never dumped X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bf69ec35aef73fbbde965cd9281558e236a75f8c;p=openbsd if enhanced status class is not set, enhanced status code is never dumped in disk envelope. --- diff --git a/usr.sbin/smtpd/envelope.c b/usr.sbin/smtpd/envelope.c index 65dbef0d574..ed8b28b49f3 100644 --- a/usr.sbin/smtpd/envelope.c +++ b/usr.sbin/smtpd/envelope.c @@ -1,4 +1,4 @@ -/* $OpenBSD: envelope.c,v 1.30 2015/01/16 06:40:20 deraadt Exp $ */ +/* $OpenBSD: envelope.c,v 1.31 2015/10/09 09:56:28 gilles Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -893,7 +893,7 @@ ascii_dump_field(const char *field, const struct envelope *ep, } if (strcasecmp(field, "esc-code") == 0) { - if (ep->esc_class) + if (ep->esc_code) return ascii_dump_uint8(ep->esc_code, buf, len); return 1; }