[Midnightbsd-cvs] src [6879] stable/0.5/sbin/routed/input.c: The input path in routed(8) will accept queries from any source and
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Tue Oct 21 18:13:27 EDT 2014
Revision: 6879
http://svnweb.midnightbsd.org/src/?rev=6879
Author: laffer1
Date: 2014-10-21 18:13:27 -0400 (Tue, 21 Oct 2014)
Log Message:
-----------
The input path in routed(8) will accept queries from any source and
attempt to answer them. However, the output path assumes that the
destination address for the response is on a directly connected
network.
Obtained from: FreeBSD
Modified Paths:
--------------
stable/0.5/sbin/routed/input.c
Modified: stable/0.5/sbin/routed/input.c
===================================================================
--- stable/0.5/sbin/routed/input.c 2014-10-21 22:12:05 UTC (rev 6878)
+++ stable/0.5/sbin/routed/input.c 2014-10-21 22:13:27 UTC (rev 6879)
@@ -288,6 +288,10 @@
/* Answer a query from a utility program
* with all we know.
*/
+ if (aifp == NULL) {
+ trace_pkt("ignore remote query");
+ return;
+ }
if (from->sin_port != htons(RIP_PORT)) {
supply(from, aifp, OUT_QUERY, 0,
rip->rip_vers, ap != 0);
More information about the Midnightbsd-cvs
mailing list