summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2018-12-28 11:11:36 +0000
committereric <eric@openbsd.org>2018-12-28 11:11:36 +0000
commitd968baab7969d67d16df4ee8b49b92f5d1afb3f0 (patch)
tree2707d48ff90581437e67d10288b5a94797d67c80
parentuse private data structure for managing static table content (diff)
downloadwireguard-openbsd-d968baab7969d67d16df4ee8b49b92f5d1afb3f0.tar.xz
wireguard-openbsd-d968baab7969d67d16df4ee8b49b92f5d1afb3f0.zip
fix logging of list entries
-rw-r--r--usr.sbin/smtpd/table_static.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/table_static.c b/usr.sbin/smtpd/table_static.c
index d7e9698a733..73c18164a42 100644
--- a/usr.sbin/smtpd/table_static.c
+++ b/usr.sbin/smtpd/table_static.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: table_static.c,v 1.30 2018/12/28 10:42:18 eric Exp $ */
+/* $OpenBSD: table_static.c,v 1.31 2018/12/28 11:11:36 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -282,7 +282,7 @@ table_static_dump(struct table *table)
iter = NULL;
while (dict_iter(&priv->dict, &iter, &key, (void**)&value)) {
- if (value)
+ if (value && (void*)value != (void*)priv)
log_debug(" \"%s\" -> \"%s\"", key, value);
else
log_debug(" \"%s\"", key);