projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix warnings all over citserver; handle function replies; remove unused code.
[citadel.git]
/
citadel
/
locate_host.c
diff --git
a/citadel/locate_host.c
b/citadel/locate_host.c
index c3a19636930996eeecebb11db922588bf248829f..2a7568b232e4ce1fbb05d6f05c7e88fe154ccf1c 100644
(file)
--- 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 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;
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);
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;
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, ':');
/* tedious code to expand and reverse an IPv6 address */
safestrncpy(tbuf, CC->cs_addr, sizeof tbuf);
num_colons = haschar(tbuf, ':');