Fix broken DNSMASQ_USER<x> envvars in script with more than one class.

This commit is contained in:
Simon Kelley
2016-03-01 18:58:01 +00:00
parent 407a1f3e95
commit a93bd4b016
2 changed files with 13 additions and 9 deletions

View File

@@ -1308,7 +1308,7 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
/* If the user-class option started as counted strings, the first byte will be zero. */
if (len != 0 && ucp[0] == 0)
ucp++, len--;
lease_add_extradata(lease, ucp, len, 0);
lease_add_extradata(lease, ucp, len, -1);
}
}
#endif