Page 1 of 1

Compile Error with grsecurity-2.0-rc4-2.4.23.patch

PostPosted: Wed Dec 24, 2003 7:19 am
by Mase
Hi List,

C is a foreign language to me but after a compile error i found a
small bug in obsd_rand.c:

ip_randomisn(void)
{
if (tcp_rndiss_cnt >= TCP_RNDISS_MAX ||
time_after(xtime.tv_sec, tcp_rndiss_reseed))
tcp_rndiss_init();

return (((tcp_rndiss_encrypt(tcp_rndiss_cnt++) |
(tcp_rndiss_msb) << 16) | (get_random_long() & 0x7fff));
}

correct is:

ip_randomisn(void)
{
if (tcp_rndiss_cnt >= TCP_RNDISS_MAX ||
time_after(xtime.tv_sec, tcp_rndiss_reseed))
tcp_rndiss_init();

return (((tcp_rndiss_encrypt(tcp_rndiss_cnt++) |
(tcp_rndiss_msb) << 16) | (get_random_long() & 0x7fff)));
}

after that it works

PostPosted: Wed Dec 24, 2003 10:48 am
by spender
download the patch again from the website. I've corrected the typo that caused the compile error. your change wasn't the correct one, so just update from the website.

-Brad