summaryrefslogtreecommitdiff
path: root/source3/lib/replace/dlfcn.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/replace/dlfcn.c')
-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;