doc/share/security/patches/SA-14:21/routed.patch
2014-10-21 20:48:08 +00:00

15 lines
459 B
Diff

Index: sbin/routed/input.c
===================================================================
--- sbin/routed/input.c.orig
+++ sbin/routed/input.c
@@ -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);