[Midnightbsd-cvs] src [7876] trunk/libexec/rtld-elf/rtld.c: Do not call process_nodelete with NULL object pointer.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Sep 14 12:30:36 EDT 2016


Revision: 7876
          http://svnweb.midnightbsd.org/src/?rev=7876
Author:   laffer1
Date:     2016-09-14 12:30:35 -0400 (Wed, 14 Sep 2016)
Log Message:
-----------
 Do not call process_nodelete with NULL object pointer.

Obtained from: FreeBSD

Modified Paths:
--------------
    trunk/libexec/rtld-elf/rtld.c

Modified: trunk/libexec/rtld-elf/rtld.c
===================================================================
--- trunk/libexec/rtld-elf/rtld.c	2016-09-14 16:29:03 UTC (rev 7875)
+++ trunk/libexec/rtld-elf/rtld.c	2016-09-14 16:30:35 UTC (rev 7876)
@@ -2698,7 +2698,8 @@
 	     * This has to be done after we have loaded all of the
 	     * dependencies, so that we do not miss any.
 	     */
-	     process_nodelete(obj);
+	    if (obj != NULL)
+		process_nodelete(obj);
 	} else {
 	    /*
 	     * Bump the reference counts for objects on this DAG.  If



More information about the Midnightbsd-cvs mailing list