[Midnightbsd-cvs] src [6884] trunk/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:30:33 EDT 2014


Revision: 6884
          http://svnweb.midnightbsd.org/src/?rev=6884
Author:   laffer1
Date:     2014-10-21 18:30:33 -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:
--------------
    trunk/sbin/routed/input.c

Modified: trunk/sbin/routed/input.c
===================================================================
--- trunk/sbin/routed/input.c	2014-10-21 22:29:37 UTC (rev 6883)
+++ trunk/sbin/routed/input.c	2014-10-21 22:30:33 UTC (rev 6884)
@@ -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