From 81c8f9fa6d4fdbc6426923c2f8fad809b478d297 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 17 Dec 1999 20:21:45 +0000 Subject: Make a dlopen failure consistant with dlsym(). "Shouldn't happen." --- lib/libcrypt/crypt-md5.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libcrypt/crypt-md5.c') diff --git a/lib/libcrypt/crypt-md5.c b/lib/libcrypt/crypt-md5.c index 004ba60..c112bd8 100644 --- a/lib/libcrypt/crypt-md5.c +++ b/lib/libcrypt/crypt-md5.c @@ -75,8 +75,10 @@ crypt_md5(pw, salt) #ifdef __PIC__ libmd = dlopen("libmd.so", RTLD_NOW); - if (libmd == NULL) + if (libmd == NULL) { + warnx("libcrypt-md5: dlopen(libmd.so): %s\n", dlerror()); return NULL; + } dl_MD5Init = dlsym(libmd, "MD5Init"); if (dl_MD5Init == NULL) { warnx("libcrypt-md5: looking for MD5Init: %s\n", dlerror()); -- cgit v1.1