diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2012-05-05 11:26:08 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2012-05-05 11:26:08 +0000 |
| commit | eb6910ccca50b2987e0073cba505b4ff0bd3c8ed (patch) | |
| tree | 28d62cdd44d4243bbf4c70953adf15faa8d854ab /libexec | |
| parent | 54d642ad7de87bb33606ccbb047cf50aa9f4063f (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/rtld-elf/rtld.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 9276a524e0c42..621d084b0ed87 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -3480,13 +3480,15 @@ symlook_obj(SymLook *req, const Obj_Entry *obj) int flags, res, mres; /* - * There is at least one valid hash at this point, and we prefer to use - * the faster GNU version if available. + * If there is at least one valid hash at this point, we prefer to + * use the faster GNU version if available. */ if (obj->valid_hash_gnu) mres = symlook_obj1_gnu(req, obj); - else + else if (obj->valid_hash_sysv) mres = symlook_obj1_sysv(req, obj); + else + return (EINVAL); if (mres == 0) { if (obj->needed_filtees != NULL) { |
