diff options
author | 2014-04-08 12:44:57 +0000 | |
---|---|---|
committer | 2014-04-08 12:44:57 +0000 | |
commit | 2aa80fc8019ae9dcd77ca32efcacc60c720be106 (patch) | |
tree | 08952531353b7821e8fc278949b0d26a90c563e6 | |
parent | Less <uvm/uvm.h> (diff) | |
download | wireguard-openbsd-2aa80fc8019ae9dcd77ca32efcacc60c720be106.tar.xz wireguard-openbsd-2aa80fc8019ae9dcd77ca32efcacc60c720be106.zip |
zero-fill static buffer before use in DSN code
diff from Sunil Nimmagadda, ok eric@
-rw-r--r-- | usr.sbin/smtpd/mta_session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/mta_session.c b/usr.sbin/smtpd/mta_session.c index 8f304cad319..8aa9a992d48 100644 --- a/usr.sbin/smtpd/mta_session.c +++ b/usr.sbin/smtpd/mta_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta_session.c,v 1.58 2014/04/04 16:10:42 eric Exp $ */ +/* $OpenBSD: mta_session.c,v 1.59 2014/04/08 12:44:57 gilles Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -1602,6 +1602,7 @@ dsn_strnotify(uint8_t arg) static char buf[32]; size_t sz; + buf[0] = '\0'; if (arg & DSN_SUCCESS) strlcat(buf, "SUCCESS,", sizeof(buf)); |