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.
This commit is contained in:
des 2015-01-03 01:52:06 +00:00
parent 771035aa6c
commit d34b4ecb1a

View File

@ -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