Fix crash in DHCPINFORM without valid --dhcp-range.

This commit is contained in:
Simon Kelley
2012-03-23 10:00:02 +00:00
parent 52d4abf2f9
commit 7d2b5c9583
2 changed files with 6 additions and 1 deletions

View File

@@ -2095,7 +2095,8 @@ static void do_options(struct dhcp_context *context,
struct dhcp_netid_list *id_list;
/* filter options based on tags, those we want get DHOPT_TAGOK bit set */
context->netid.next = NULL;
if (context)
context->netid.next = NULL;
tagif = option_filter(netid, context && context->netid.net ? &context->netid : NULL, config_opts);
/* logging */