diff options
-rw-r--r-- | source4/param/loadparm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 186443662a..49d2e1cf74 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -2533,6 +2533,9 @@ struct loadparm_context *loadparm_init_global(bool load_default) if (global_loadparm_context == NULL) { global_loadparm_context = loadparm_init(NULL); } + if (global_loadparm_context == NULL) { + return NULL; + } if (load_default && !global_loadparm_context->loaded) { lpcfg_load_default(global_loadparm_context); } |