From a3cb86443892e01f341157cf2ecaf1471462bd43 Mon Sep 17 00:00:00 2001 From: millert Date: Tue, 13 Jan 2015 23:22:33 +0000 Subject: [PATCH] Move debug printf for duplicate af to correct location. --- libexec/spamd/spamd.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c index c44a66ff0c4..87d5eeffe9f 100644 --- a/libexec/spamd/spamd.c +++ b/libexec/spamd/spamd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd.c,v 1.120 2015/01/13 21:49:36 millert Exp $ */ +/* $OpenBSD: spamd.c,v 1.121 2015/01/13 23:22:33 millert Exp $ */ /* * Copyright (c) 2002-2007 Bob Beck. All rights reserved. @@ -290,17 +290,19 @@ parse_configline(char *line) av[au] = tmp; } if (af == AF_INET) { - if (debug > 0) - printf("duplicate inet\n"); - if (v4 != NULL) + if (v4 != NULL) { + if (debug > 0) + printf("duplicate inet\n"); goto parse_error; + } v4 = av; nv4 = ac; } else { - if (debug > 0) - printf("duplicate inet6\n"); - if (v6 != NULL) + if (v6 != NULL) { + if (debug > 0) + printf("duplicate inet6\n"); goto parse_error; + } v6 = av; nv6 = ac; } -- 2.20.1