diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-08-04 09:48:28 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-08-04 09:48:28 +0000 |
commit | 26f08471345c3acb83f0fd8c3c9c99c249e47bfe (patch) | |
tree | 300ad2411cd608568ea3fd240344e3215f57cd79 /libexec/spamd/sdl.c | |
parent | 54b5937977a06e34c35f2d490a844c7daee907fe (diff) |
Fix handling of empty entries at the end of an address list; avoids
always skipping the last address. ok beck@
Diffstat (limited to 'libexec/spamd/sdl.c')
-rw-r--r-- | libexec/spamd/sdl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/spamd/sdl.c b/libexec/spamd/sdl.c index 16cf8f6a3f7..bfac803ee6e 100644 --- a/libexec/spamd/sdl.c +++ b/libexec/spamd/sdl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdl.c,v 1.12 2004/02/26 08:18:56 deraadt Exp $ */ +/* $OpenBSD: sdl.c,v 1.13 2005/08/04 09:48:27 otto Exp $ */ /* * Copyright (c) 2003 Bob Beck. All rights reserved. @@ -75,11 +75,12 @@ sdl_add(char *sdname, char *sdstring, char ** addrs, int addrc) } if (index != -1) { if (debug > 0) - printf("replacing list %s\n", blacklists[index].tag); + printf("replacing list %s; %d new entries\n", + blacklists[index].tag, addrc); sdl_free(&blacklists[index]); } else { if (debug > 0) - printf("adding list %s\n", sdname); + printf("adding list %s; %d entries\n", sdname, addrc); index = blu; } if (index == blu && blu == blc) { |