mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Change the reboot panic that would have occurred if clientid
numbers wrapped around to a printf() warning of a possible DOS attack, in the experimental nfsv4 server. Approved by: kib (mentor)
This commit is contained in:
parent
ae1add4e55
commit
199685bca9
1 changed files with 2 additions and 6 deletions
|
|
@ -3705,12 +3705,8 @@ nfsrv_nextclientindex(void)
|
|||
if (client_index != 0)
|
||||
return (client_index);
|
||||
|
||||
/*
|
||||
* In practice we'll never get here, but the panic is here
|
||||
* just for fun. (client_index will not wrap around on any real server)
|
||||
*/
|
||||
panic("nfsv4 server out of clientids");
|
||||
return (0); /* Just to shut the compiler up */
|
||||
printf("out of clientids, possible DOS attack\n");
|
||||
return (client_index);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue