if enhanced status class is not set, enhanced status code is never dumped
authorgilles <gilles@openbsd.org>
Fri, 9 Oct 2015 09:56:28 +0000 (09:56 +0000)
committergilles <gilles@openbsd.org>
Fri, 9 Oct 2015 09:56:28 +0000 (09:56 +0000)
in disk envelope.

usr.sbin/smtpd/envelope.c

index 65dbef0..ed8b28b 100644 (file)
@@ -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 <eric@openbsd.org>
@@ -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;
        }