diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-01-13 23:22:34 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-01-13 23:22:34 +0000 |
commit | 3941772e9026c60c433c251dfbad934ad6e81d3f (patch) | |
tree | 21b362d9f213402127631b9dbfefaacd5c3dae4f /libexec/spamd | |
parent | 3f6b40d274cfd0b036bf14988c30068e7ac4f0d5 (diff) |
Move debug printf for duplicate af to correct location.
Diffstat (limited to 'libexec/spamd')
-rw-r--r-- | libexec/spamd/spamd.c | 16 |
1 files 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; } |