summaryrefslogtreecommitdiff
path: root/source3/lib/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/fault.c')
-rw-r--r--source3/lib/fault.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/fault.c b/source3/lib/fault.c
index 1964955f1b..d4c1142937 100644
--- a/source3/lib/fault.c
+++ b/source3/lib/fault.c
@@ -188,6 +188,11 @@ void dump_core_setup(const char *progname)
become_root();
}
+ if (corepath == NULL) {
+ DEBUG(0, ("Can not dump core: corepath not set up\n"));
+ exit(1);
+ }
+
if (*corepath != '\0') {
/* The chdir might fail if we dump core before we finish
* processing the config file.