diff options
Diffstat (limited to 'libexec/ld.so/sod.c')
-rw-r--r-- | libexec/ld.so/sod.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/ld.so/sod.c b/libexec/ld.so/sod.c index 9c3c64df3c9..5fc908853c4 100644 --- a/libexec/ld.so/sod.c +++ b/libexec/ld.so/sod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sod.c,v 1.24 2012/06/12 20:32:17 matthew Exp $ */ +/* $OpenBSD: sod.c,v 1.25 2013/01/19 20:04:05 miod Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -213,6 +213,9 @@ _dl_findhint(char *name, int major, int minor, char *preferred_path) if (!(HINTS_VALID)) return NULL; + if (hheader->hh_nbucket == 0) + return NULL; + bp = hbuckets + (_dl_hinthash(name, major, minor) % hheader->hh_nbucket); while (1) { |