X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Flocate_host.c;h=2a7568b232e4ce1fbb05d6f05c7e88fe154ccf1c;hp=c3a19636930996eeecebb11db922588bf248829f;hb=e26a8dee20d1726b4995821f717f867f50fc5659;hpb=e1241b61d2f8d7935670c36ab5fb4e10262514a6 diff --git a/citadel/locate_host.c b/citadel/locate_host.c index c3a196369..2a7568b23 100644 --- a/citadel/locate_host.c +++ b/citadel/locate_host.c @@ -243,13 +243,11 @@ int rbl_check(char *message_to_spammer) int num_rbl; char rbl_domains[SIZ]; char txt_answer[1024]; - int ip_version = 4; strcpy(message_to_spammer, "ok"); if ((strchr(CC->cs_addr, '.')) && (!strchr(CC->cs_addr, ':'))) { int a1, a2, a3, a4; - ip_version = 4; sscanf(CC->cs_addr, "%d.%d.%d.%d", &a1, &a2, &a3, &a4); snprintf(tbuf, sizeof tbuf, "%d.%d.%d.%d.", a4, a3, a2, a1); @@ -261,8 +259,6 @@ int rbl_check(char *message_to_spammer) char workbuf[sizeof tbuf]; char *ptr; - ip_version = 6; - /* tedious code to expand and reverse an IPv6 address */ safestrncpy(tbuf, CC->cs_addr, sizeof tbuf); num_colons = haschar(tbuf, ':');