dhclient: improve error handling parsing option 119
Reported by: Shlomi Oberman, JSOF Submitted by: delphij Reviewed by: markj Tested by: markj
This commit is contained in:
parent
f4d7179ad3
commit
57b278f886
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364994
@ -298,6 +298,8 @@ find_search_domain_name_len(struct option_data *option, size_t *offset)
|
|||||||
|
|
||||||
pointed_len = find_search_domain_name_len(option,
|
pointed_len = find_search_domain_name_len(option,
|
||||||
&pointer);
|
&pointer);
|
||||||
|
if (pointed_len < 0)
|
||||||
|
return (-1);
|
||||||
domain_name_len += pointed_len;
|
domain_name_len += pointed_len;
|
||||||
|
|
||||||
*offset = i + 2;
|
*offset = i + 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user