diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2012-01-11 23:25:30 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2012-01-11 23:25:30 +0000 |
commit | 640d78940ce7ecc893aaf3cac909b8035d1d84b7 (patch) | |
tree | 0d39089dbe23f4a3c46f2b3b9bb0f5c911b7eedc /usr.sbin | |
parent | 84f6b871a8b35f0306f4dd0fc519523aafbd07eb (diff) |
fix flags writing
ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/envelope.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/envelope.c b/usr.sbin/smtpd/envelope.c index 9c4721aa901..162a0231e8c 100644 --- a/usr.sbin/smtpd/envelope.c +++ b/usr.sbin/smtpd/envelope.c @@ -1,4 +1,4 @@ -/* $OpenBSD: envelope.c,v 1.1 2012/01/11 22:24:37 gilles Exp $ */ +/* $OpenBSD: envelope.c,v 1.2 2012/01/11 23:25:29 eric Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org> @@ -527,17 +527,17 @@ ascii_dump_flags(enum delivery_flags flags, char *buf, size_t len) if (flags & DF_AUTHENTICATED) cpylen = strlcat(buf, "authenticated", len); if (flags & DF_ENQUEUED) { - if (buf[0] == '\0') + if (buf[0] != '\0') cpylen = strlcat(buf, " ", len); cpylen = strlcat(buf, "enqueued", len); } if (flags & DF_BOUNCE) { - if (buf[0] == '\0') + if (buf[0] != '\0') cpylen = strlcat(buf, " ", len); cpylen = strlcat(buf, "bounce", len); } if (flags & DF_INTERNAL) { - if (buf[0] == '\0') + if (buf[0] != '\0') cpylen = strlcat(buf, " ", len); cpylen = strlcat(buf, "internal", len); } |