summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-20 20:05:51 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-20 20:05:51 +0100
commit910a1cafdf253255510d3aff7cc2385da43331dd (patch)
tree9784db2f7ecb22fe167ecac6481cf3d614e7a1b9 /source4/lib
parent19bb90a034845c468a76c12ca18f41c5f6c650a5 (diff)
downloadsamba-910a1cafdf253255510d3aff7cc2385da43331dd.tar.gz
samba-910a1cafdf253255510d3aff7cc2385da43331dd.tar.bz2
samba-910a1cafdf253255510d3aff7cc2385da43331dd.zip
Support dlopen(NULL, ...) on HPUX.
(This used to be commit 53c70b5f77a3b9abaab783590e66278129173d5f)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/replace/dlfcn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/replace/dlfcn.c b/source4/lib/replace/dlfcn.c
index 42848848e8..3b109d7e40 100644
--- a/source4/lib/replace/dlfcn.c
+++ b/source4/lib/replace/dlfcn.c
@@ -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;