Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2020 15:55:29 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364994 - head/sbin/dhclient
Message-ID:  <202008311555.07VFtT8o028657@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Aug 31 15:55:29 2020
New Revision: 364994
URL: https://svnweb.freebsd.org/changeset/base/364994

Log:
  dhclient: improve error handling parsing option 119
  
  Reported by:	Shlomi Oberman, JSOF
  Submitted by:	delphij
  Reviewed by:	markj
  Tested by:	markj

Modified:
  head/sbin/dhclient/options.c

Modified: head/sbin/dhclient/options.c
==============================================================================
--- head/sbin/dhclient/options.c	Mon Aug 31 15:32:45 2020	(r364993)
+++ head/sbin/dhclient/options.c	Mon Aug 31 15:55:29 2020	(r364994)
@@ -298,6 +298,8 @@ find_search_domain_name_len(struct option_data *option
 
 			pointed_len = find_search_domain_name_len(option,
 			    &pointer);
+			if (pointed_len < 0)
+				return (-1);
 			domain_name_len += pointed_len;
 
 			*offset = i + 2;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008311555.07VFtT8o028657>