diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2014-07-06 19:15:17 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2014-07-06 19:15:17 +0000 |
commit | d5860a22db7aeebafb942d42e6e1c4cab2109af8 (patch) | |
tree | 8a5b82d616a2b519f6d70033c943724c24b94a6e /libexec/ld.so | |
parent | a9844262036e028323f7d11f70991b9a54447ec4 (diff) |
allocate two things, test two pointers; ok miod@ guenther@
Diffstat (limited to 'libexec/ld.so')
-rw-r--r-- | libexec/ld.so/loader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c index db0f559e73d..75e37f339ac 100644 --- a/libexec/ld.so/loader.c +++ b/libexec/ld.so/loader.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loader.c,v 1.148 2014/06/21 08:00:23 otto Exp $ */ +/* $OpenBSD: loader.c,v 1.149 2014/07/06 19:15:16 otto Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -285,7 +285,7 @@ _dl_load_dep_libs(elf_object_t *object, int flags, int booting) randomlist = _dl_reallocarray(NULL, libcount, sizeof(int)); - if (liblist == NULL) + if (liblist == NULL || randomlist == NULL) _dl_exit(5); for (dynp = dynobj->load_dyn, loop = 0; dynp->d_tag; |