Skip to content

Commit

Permalink
don't respond to dhcp if there is nowhere to respond to
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnewton committed Mar 12, 2014
1 parent ad75a70 commit a383091
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/proto_dhcp/dhcpd.c
Expand Up @@ -494,7 +494,12 @@ static int dhcp_process(REQUEST *request)

vp = pairfind(request->reply->vps, 264, DHCP_MAGIC_VENDOR, TAG_ANY); /* DHCP-Your-IP-Address */
if (!vp) {
DEBUG("DHCP: Failed to find DHCP-Your-IP-Address for request.");
DEBUG("DHCP: Failed to find DHCP-Client-IP-Address or DHCP-Your-IP-Address");
DEBUG(" for request; not responding.");
/*
* There is nowhere to send the response to, so don't bother.
*/
request->reply->code = 0;
return -1;
}

Expand Down

0 comments on commit a383091

Please sign in to comment.