[rbldnsd] Rbldnsd hooks
Jacob Rideout
jacob.rideout at returnpath.net
Wed Mar 19 20:15:34 MSK 2008
Hello,
I've been working a hook to support our internal uses of rbldnsd request data and have discovered what may be a bug in rbldnsd_packet.c. If there aren't any objections I'd like this patch to be considered for inclusion in the next version of rbldnsd.
--- rbldnsd_packet.c
+++ rbldnsd_packet.c
@@ -415,7 +415,7 @@
h[p_f2] = DNS_R_NXDOMAIN;
do_stats(zone->z_stats.q_nxd += 1);
#ifdef do_hook_query_result
- hook_query_result(zone, NULL, &qi, 0);
+ hook_query_result(pkt->p_peer, zone, &qi, 0);
#endif
}
else {
@@ -428,7 +428,7 @@
addrr_ns(pkt, zone, 1); /* add nameserver records to positive reply */
do_stats(zone->z_stats.q_ok += 1);
#ifdef do_hook_query_result
- hook_query_result(zone, NULL, &qi, 1);
+ hook_query_result(pkt->p_peer, zone, &qi, 1);
#endif
}
if (rlen() > DNS_MAXPACKET) { /* add OPT record for long replies */
Jacob RIDEOUT
Software Engineer
Return Path, Inc.
More information about the rbldnsd
mailing list