rtld: Don't call process_nodelete with NULL object pointer
authorJohn Marino <draco@marino.st>
Sat, 15 Sep 2012 21:36:39 +0000 (23:36 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 15 Sep 2012 21:51:40 +0000 (23:51 +0200)
commitb76ffb9a8acba18fb936ba047ee5172af0512af6
treebd11ed0f01a46bdc3593804d415ff6e8948aa0a0
parentf86b3b54af309f6f7dd52ad1e8d0af2e64677ee7
rtld: Don't call process_nodelete with NULL object pointer

If object loading and relocation fail, the obj pointer will be NULL when
then process_nodelete function is reached.  A crash will occur if the
function is called with a null pointer, so ensure that it doesn't.

Taken-from: FreeBSD SVN 239470 (20 Aug 2012)
libexec/rtld-elf/rtld.c