Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/postfix/src/smtpd use RBL only for IPv4 addrs.
details: https://anonhg.NetBSD.org/src/rev/7603291fb055
branches: trunk
changeset: 508204:7603291fb055
user: itojun <itojun%NetBSD.org@localhost>
date: Sun Apr 08 10:56:43 2001 +0000
description:
use RBL only for IPv4 addrs.
diffstat:
gnu/dist/postfix/src/smtpd/smtpd_check.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r ec328b65b11a -r 7603291fb055 gnu/dist/postfix/src/smtpd/smtpd_check.c
--- a/gnu/dist/postfix/src/smtpd/smtpd_check.c Sun Apr 08 10:16:17 2001 +0000
+++ b/gnu/dist/postfix/src/smtpd/smtpd_check.c Sun Apr 08 10:56:43 2001 +0000
@@ -1488,10 +1488,15 @@
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.
*/
Home |
Main Index |
Thread Index |
Old Index