fix logging of list entries
authoreric <eric@openbsd.org>
Fri, 28 Dec 2018 11:11:36 +0000 (11:11 +0000)
committereric <eric@openbsd.org>
Fri, 28 Dec 2018 11:11:36 +0000 (11:11 +0000)
usr.sbin/smtpd/table_static.c

index d7e9698..73c1816 100644 (file)
@@ -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);