Fix for NO_DHCP_SUPPORT contributed by Helge Wagner <HWagner@sbs.com>
authormcb30 <mcb30>
Tue, 31 May 2005 10:13:09 +0000 (10:13 +0000)
committermcb30 <mcb30>
Tue, 31 May 2005 10:13:09 +0000 (10:13 +0000)
src/core/nic.c

index 44f80c3..64f9d27 100644 (file)
@@ -967,7 +967,7 @@ static int bootp(void)
                remaining_time = rfc2131_sleep_interval(BOOTP_TIMEOUT, retry++);
                stop_time = currticks() + remaining_time;
 #ifdef NO_DHCP_SUPPORT
-               if (await_reply(await_bootp, 0, NULL, timeout))
+               if (await_reply(await_bootp, 0, NULL, remaining_time))
                        return(1);
 #else
                while ( remaining_time > 0 ) {