mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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,
|
||||
&pointer);
|
||||
if (pointed_len < 0)
|
||||
return (-1);
|
||||
domain_name_len += pointed_len;
|
||||
|
||||
*offset = i + 2;
|
||||
|
|
Loading…
Reference in a new issue