Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2020 21:28:57 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r365011 - stable/11/sbin/dhclient
Message-ID:  <202008312128.07VLSvV5032977@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Aug 31 21:28:57 2020
New Revision: 365011
URL: https://svnweb.freebsd.org/changeset/base/365011

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

Modified:
  stable/11/sbin/dhclient/options.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/dhclient/options.c
==============================================================================
--- stable/11/sbin/dhclient/options.c	Mon Aug 31 21:28:09 2020	(r365010)
+++ stable/11/sbin/dhclient/options.c	Mon Aug 31 21:28:57 2020	(r365011)
@@ -296,6 +296,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?202008312128.07VLSvV5032977>