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:
Dag-Erling Smørgrav 2015-01-03 01:52:06 +00:00
parent a40e51e355
commit e331584127
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276602

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