From d968baab7969d67d16df4ee8b49b92f5d1afb3f0 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 28 Dec 2018 11:11:36 +0000 Subject: [PATCH] fix logging of list entries --- usr.sbin/smtpd/table_static.c | 4 ++-- 1 file 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 @@ -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); -- 2.20.1