-/* $OpenBSD: spamd-setup.c,v 1.40 2015/01/13 21:42:59 millert Exp $ */
+/* $OpenBSD: spamd-setup.c,v 1.41 2015/01/13 21:45:53 millert Exp $ */
/*
* Copyright (c) 2003 Bob Beck. All rights reserved.
return (0);
}
if (black) {
+ if (debug)
+ fprintf(stderr, "blacklist %s %zu entries\n",
+ name, blc / 2);
blistnew->message = message;
blistnew->name = name;
blistnew->black = black;
blistnew->bls = bls;
} else {
/* whitelist applied to last active blacklist */
+ if (debug)
+ fprintf(stderr, "whitelist %s %zu entries\n",
+ name, (blc - blist->blc) / 2);
blist->bl = bl;
blist->blc = blc;
blist->bls = bls;
}
- if (debug)
- fprintf(stderr, "%slist %s %zu entries\n",
- black ? "black" : "white", name, blc / 2);
return (black);
}