mirror of
https://git.busybox.net/udhcp
synced 2025-05-08 22:09:45 +08:00
alignment fixes
This commit is contained in:
parent
3e15778f58
commit
882a605c46
@ -129,12 +129,11 @@ int sendOffer(struct dhcpMessage *oldpacket)
|
||||
ntohl(req_align) <= ntohl(server_config.end) &&
|
||||
|
||||
/* and its not already taken/offered */
|
||||
((!(lease = find_lease_by_yiaddr(*req)) ||
|
||||
((!(lease = find_lease_by_yiaddr(req_align)) ||
|
||||
|
||||
/* or its taken, but expired */
|
||||
lease_expired(lease)))) {
|
||||
|
||||
packet.yiaddr = *req;
|
||||
packet.yiaddr = req_align;
|
||||
|
||||
/* otherwise, find a free IP */
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user