Fixed a buffer overrun. In my kernel configuration, tcp_syncache happens

to be followed by nfsnodehashtbl, so bzeroing callouts beyond the end of
tcp_syncache soon caused a null pointer panic when nfsnodehashtbl was
accessed.
This commit is contained in:
Bruce Evans 2001-11-23 12:31:27 +00:00
parent 095731a5b7
commit 419d3454b1

View File

@ -237,7 +237,7 @@ syncache_init(void)
}
/* Initialize the timer queues. */
for (i = 0; i <= TCP_MAXRXTSHIFT; i++) {
for (i = 0; i <= SYNCACHE_MAXREXMTS; i++) {
TAILQ_INIT(&tcp_syncache.timerq[i]);
callout_init(&tcp_syncache.tt_timerq[i], 0);
}