summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/expand.c
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2013-01-31 18:34:43 +0000
committereric <eric@openbsd.org>2013-01-31 18:34:43 +0000
commit1c6ac25114bf06f7d43719e74b098aea17cee49c (patch)
treec6a9197bc346c4c8a38fb7caf01b634152987a65 /usr.sbin/smtpd/expand.c
parentdo not need to tweak the socket sndbuf, now that the envelopes are passed (diff)
downloadwireguard-openbsd-1c6ac25114bf06f7d43719e74b098aea17cee49c.tar.xz
wireguard-openbsd-1c6ac25114bf06f7d43719e74b098aea17cee49c.zip
assorted fixes spotted by Coverity.
some log message updates. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/expand.c')
-rw-r--r--usr.sbin/smtpd/expand.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/expand.c b/usr.sbin/smtpd/expand.c
index 434d08cdb37..06c525a3a5b 100644
--- a/usr.sbin/smtpd/expand.c
+++ b/usr.sbin/smtpd/expand.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expand.c,v 1.19 2013/01/26 09:37:23 gilles Exp $ */
+/* $OpenBSD: expand.c,v 1.20 2013/01/31 18:34:43 eric Exp $ */
/*
* Copyright (c) 2009 Gilles Chehade <gilles@poolp.org>
@@ -68,7 +68,7 @@ expand_insert(struct expand *expand, struct expandnode *node)
}
void
-expand_free(struct expand *expand)
+expand_clear(struct expand *expand)
{
struct expandnode *xn;
@@ -82,6 +82,13 @@ expand_free(struct expand *expand)
}
}
+void
+expand_free(struct expand *expand)
+{
+ expand_clear(expand);
+ free(expand);
+}
+
int
expand_cmp(struct expandnode *e1, struct expandnode *e2)
{