1 diff -ruN --exclude conf-* ucspi-tcp-0.88/rblsmtpd.c ucspi-tcp-0.88.fix/rblsmtpd.c
2 --- ucspi-tcp-0.88/rblsmtpd.c Sat Mar 18 10:18:42 2000
3 +++ ucspi-tcp-0.88.fix/rblsmtpd.c Wed Aug 9 16:42:33 2000
11 if (!stralloc_copy(&tmp,&ip_reverse)) nomem();
12 + i = str_chr(base, ':');
15 + altreply = base+i+1;
17 if (!stralloc_cats(&tmp,base)) nomem();
18 - if (dns_txt(&text,&tmp) == -1) {
19 - flagmustnotbounce = 1;
20 - if (flagfailclosed) {
21 - if (!stralloc_copys(&text,"temporary RBL lookup error")) nomem();
24 + if (dns_ip4(&text,&tmp) == -1) {
25 + flagmustnotbounce = 1;
26 + if (flagfailclosed) {
27 + if (!stralloc_copys(&text,"temporary RBL lookup error")) nomem();
33 + if(!stralloc_copys(&text, "")) nomem();
36 + i = str_chr(altreply, '%');
37 + if(!stralloc_catb(&text, altreply, i)) nomem();
39 + altreply[i+1]=='I' &&
40 + altreply[i+2]=='P' &&
41 + altreply[i+3]=='%') {
42 + if(!stralloc_catb(&text, ip_env, str_len(ip_env))) nomem();
44 + } else if(altreply[i]) {
45 + if(!stralloc_cats(&text, "%")) nomem();
53 + if (dns_txt(&text,&tmp) == -1) {
54 + flagmustnotbounce = 1;
55 + if (flagfailclosed) {
56 + if (!stralloc_copys(&text,"temporary RBL lookup error")) nomem();