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:
Ed Maste 2020-08-31 15:55:29 +00:00
parent f4d7179ad3
commit 57b278f886

View File

@ -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;