Select correct DHCP context when in PXE bootserver mode.

This commit is contained in:
Simon Kelley
2015-05-19 23:01:27 +01:00
parent 06568c6636
commit 7f8565b94c

View File

@@ -805,7 +805,7 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
if (service->type == type) if (service->type == type)
break; break;
if (!service || !service->basename) if (!service || !service->basename || !(context = narrow_context(context, mess->ciaddr, tagif_netid)))
return 0; return 0;
clear_packet(mess, end); clear_packet(mess, end);