use RBL only for IPv4 addrs.

This commit is contained in:
itojun 2001-04-08 10:56:43 +00:00
parent 7d3a3a5b91
commit 8bb1748b2e

View File

@ -1488,10 +1488,15 @@ static int reject_maps_rbl(SMTPD_STATE *state)
int dns_status = DNS_FAIL;
int i;
int result;
struct in_addr a;
if (msg_verbose)
msg_info("%s: %s", myname, state->addr);
/* IPv4 only for now */
if (inet_pton(AF_INET, state->addr, &a) != 1)
return SMTPD_CHECK_DUNNO;
/*
* Build the constant part of the RBL query: the reverse client address.
*/