summaryrefslogtreecommitdiff
path: root/source3/lib/replace
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-20 20:05:51 +0100
committerMichael Adam <obnox@samba.org>2008-02-20 21:12:54 +0100
commit9c3f0170b396bafae33bf922d3aea00dda14bb61 (patch)
tree3e2b4adcf2f87eb00c9e6e20acac2e4e2fae71f4 /source3/lib/replace
parent4f5a88806733161f1b93ac3c9ca9b9248bbe0707 (diff)
downloadsamba-9c3f0170b396bafae33bf922d3aea00dda14bb61.tar.gz
samba-9c3f0170b396bafae33bf922d3aea00dda14bb61.tar.bz2
samba-9c3f0170b396bafae33bf922d3aea00dda14bb61.zip
Support dlopen(NULL, ...) on HPUX.
(cherry picked from commit 53c70b5f77a3b9abaab783590e66278129173d5f) (This used to be commit 8883ee2418152d58e2ce609e02105e009f8ca4e8)
Diffstat (limited to 'source3/lib/replace')
-rw-r--r--source3/lib/replace/dlfcn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/replace/dlfcn.c b/source3/lib/replace/dlfcn.c
index 42848848e8..3b109d7e40 100644
--- a/source3/lib/replace/dlfcn.c
+++ b/source3/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;