Author: emaste
Date: Mon Aug 31 21:28:09 2020
New Revision: 365010
URL: https://svnweb.freebsd.org/changeset/base/365010

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/12/sbin/dhclient/options.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/dhclient/options.c
==============================================================================
--- stable/12/sbin/dhclient/options.c   Mon Aug 31 21:04:00 2020        
(r365009)
+++ stable/12/sbin/dhclient/options.c   Mon Aug 31 21:28:09 2020        
(r365010)
@@ -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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to