X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Flocate_host.c;h=a3ff5c028529102ac7f926f3b9de46fd1193475a;hb=119f5ee3d14919e18afc159074295c51e5f911ba;hp=c19f92316dd88c9f04b1b1b1c66218bc30e08eb9;hpb=63cb2f4bcd0510c1c5052d477095c25e034a960e;p=citadel.git diff --git a/citadel/locate_host.c b/citadel/locate_host.c index c19f92316..a3ff5c028 100644 --- a/citadel/locate_host.c +++ b/citadel/locate_host.c @@ -95,7 +95,7 @@ int rbl_check_addr(struct in_addr *addr, char *message_to_spammer) { const char *i; int a1, a2, a3, a4; - char tbuf[SIZ]; + char tbuf[256]; int rbl; int num_rbl; char rbl_domains[SIZ]; @@ -117,12 +117,11 @@ int rbl_check_addr(struct in_addr *addr, char *message_to_spammer) snprintf(tbuf, sizeof tbuf, "%d.%d.%d.%d.", a4, a3, a2, a1); - extract(&tbuf[strlen(tbuf)], rbl_domains, rbl); + extract_token(&tbuf[strlen(tbuf)], rbl_domains, rbl, '|', (sizeof tbuf - strlen(tbuf))); if (gethostbyname(tbuf) != NULL) { strcpy(message_to_spammer, - "5.7.1 Message rejected due to " - "known spammer source IP address" + "5.7.1 Message rejected due to known spammer source IP address" ); return(1); }