|
@@ -417,13 +417,13 @@ static void dhcp_rx_offer ( struct dhcp_session *dhcp,
|
417
|
417
|
|
418
|
418
|
/* Enqueue an offer to be filled in */
|
419
|
419
|
for ( i = 0 ; i < DHCP_MAX_OFFERS ; i++ ) {
|
|
420
|
+ if ( ! dhcp->offers[i].valid )
|
|
421
|
+ break;
|
|
422
|
+
|
420
|
423
|
if ( dhcp->offers[i].server.s_addr == server_id.s_addr ) {
|
421
|
424
|
DBGC ( dhcp, " dup\n" );
|
422
|
425
|
return;
|
423
|
426
|
}
|
424
|
|
-
|
425
|
|
- if ( ! dhcp->offers[i].valid )
|
426
|
|
- break;
|
427
|
427
|
}
|
428
|
428
|
if ( i == DHCP_MAX_OFFERS ) {
|
429
|
429
|
DBGC ( dhcp, " dropped\n" );
|