Support dlopen(NULL, ...) on HPUX.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 20 Feb 2008 19:05:51 +0000 (20:05 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 20 Feb 2008 19:05:51 +0000 (20:05 +0100)
source/lib/replace/dlfcn.c

index 4284884..3b109d7 100644 (file)
@@ -35,6 +35,8 @@ void *rep_dlopen(const char *name, int flags)
 #endif
 {
 #ifdef HAVE_SHL_LOAD
+       if (name == NULL)
+               return PROG_HANDLE;
        return (void *)shl_load(name, flags, 0);
 #else
        return NULL;