Fix a bug which could make routed(8) daemon exit by sending a special RIP
query from a remote machine, similar to SA-14:21.routed. Submitted by: hrs
This commit is contained in:
parent
90e38dfd93
commit
247f258761
@ -160,6 +160,12 @@ input(struct sockaddr_in *from, /* received from this IP address */
|
||||
|
||||
trace_rip("Recv", "from", from, sifp, rip, cc);
|
||||
|
||||
if (sifp == 0) {
|
||||
trace_pkt(" discard a request from an indirect router"
|
||||
" (possibly an attack)");
|
||||
return;
|
||||
}
|
||||
|
||||
if (rip->rip_vers == 0) {
|
||||
msglim(&bad_router, FROM_NADDR,
|
||||
"RIP version 0, cmd %d, packet received from %s",
|
||||
|
Loading…
Reference in New Issue
Block a user