Author: rmacklem Date: Fri May 22 16:41:33 2009 New Revision: 192588 URL: http://svn.freebsd.org/changeset/base/192588
Log: 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) Modified: head/sys/fs/nfsserver/nfs_nfsdstate.c Modified: head/sys/fs/nfsserver/nfs_nfsdstate.c ============================================================================== --- head/sys/fs/nfsserver/nfs_nfsdstate.c Fri May 22 16:11:00 2009 (r192587) +++ head/sys/fs/nfsserver/nfs_nfsdstate.c Fri May 22 16:41:33 2009 (r192588) @@ -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); } /* _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"