alignment fixes

This commit is contained in:
Russ Dill 2001-08-10 19:19:06 +00:00
parent 3e15778f58
commit 882a605c46

View File

@ -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 {