From e331584127b9b2a7580dbf7f8b31bd766b3da514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 3 Jan 2015 01:52:06 +0000 Subject: [PATCH] Belatedly commit the patch for SA-14:21 to head. It was not committed to head at the time because it's a band-aid, rather than a complete fix, but the complete fix never materialized. --- sbin/routed/input.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbin/routed/input.c b/sbin/routed/input.c index 901c4f3e6b9e..895ef507db7e 100644 --- a/sbin/routed/input.c +++ b/sbin/routed/input.c @@ -288,6 +288,10 @@ input(struct sockaddr_in *from, /* received from this IP address */ /* 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)) { /* * insecure: query from non-router node