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

Discuss and suggest new grsecurity features

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

Postby Mase » Wed Dec 24, 2003 7:19 am

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
Mase
 
Posts: 2
Joined: Wed Dec 24, 2003 7:16 am

Postby spender » Wed Dec 24, 2003 10:48 am

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
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm


Return to grsecurity development