summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/makemap.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-09-19 13:00:00 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-09-19 13:00:00 +0000
commit77f0227e43737e3cb7db9c4f8f5ec9857c781e47 (patch)
treee5627b941cc58cf17353201ecd888b501cfff96c /usr.sbin/smtpd/makemap.c
parentaa5714ec7e0ecebc2738c4a8b8b3d60fce518728 (diff)
expandnodes must be bzero()'d before parsing to be sure there is no bogus
data left on return, since the RB compare functions uses memcmp(). While there, remove all calls to bzero() before alias_parse(). ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/makemap.c')
-rw-r--r--usr.sbin/smtpd/makemap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/makemap.c b/usr.sbin/smtpd/makemap.c
index 11defcb0fe2..0451c40eac0 100644
--- a/usr.sbin/smtpd/makemap.c
+++ b/usr.sbin/smtpd/makemap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makemap.c,v 1.35 2012/09/19 12:45:04 eric Exp $ */
+/* $OpenBSD: makemap.c,v 1.36 2012/09/19 12:59:59 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -370,7 +370,6 @@ make_aliases(DBT *val, char *text)
while (subrcpt < endp && isspace((int)*endp))
*endp-- = '\0';
- bzero(&xn, sizeof(struct expandnode));
if (! alias_parse(&xn, subrcpt))
goto error;
}