Skip to content

Commit ffa3fc5

Browse files
committed
count offers, not replies
1 parent ef323d0 commit ffa3fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/dhcpclient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ static fr_packet_t *fr_dhcpv4_recv_raw_loop(int lsockfd,
316316
int i;
317317

318318
DEBUG("Received %d DHCP Offer(s):", nb_offer);
319-
for (i = 0; i < nb_reply; i++) {
319+
for (i = 0; i < nb_offer; i++) {
320320
char server_addr_buf[INET6_ADDRSTRLEN];
321321
char offered_addr_buf[INET6_ADDRSTRLEN];
322322

0 commit comments

Comments
 (0)