mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Make a dlopen failure consistant with dlsym(). "Shouldn't happen."
This commit is contained in:
parent
9c8fbe31e5
commit
e67c7c99ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54753
@ -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());
|
||||
|
@ -75,8 +75,10 @@ crypt_sha(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_SHA_Init = dlsym(libmd, "SHA_Init");
|
||||
if (dl_SHA_Init == NULL) {
|
||||
warnx("libcrypt-md5: looking for SHA_Init: %s\n", dlerror());
|
||||
|
Loading…
Reference in New Issue
Block a user