summaryrefslogtreecommitdiffstats
path: root/source/param
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-05-05 04:18:22 +0000
committerTim Potter <tpot@samba.org>2000-05-05 04:18:22 +0000
commitb531ddb2657e9eac1c1e9f32344b67c3963ce30a (patch)
treefef3bf78a22aa8dacff00c9eda516e4515b9b848 /source/param
parentb899943658bee90994b416aa6caff0ee7cab5f28 (diff)
downloadsamba-b531ddb2657e9eac1c1e9f32344b67c3963ce30a.tar.gz
samba-b531ddb2657e9eac1c1e9f32344b67c3963ce30a.tar.xz
samba-b531ddb2657e9eac1c1e9f32344b67c3963ce30a.zip
Fix for crash bug in OpenConfFile() if no smb.conf exists.
Diffstat (limited to 'source/param')
-rw-r--r--source/param/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/param/params.c b/source/param/params.c
index 8e926217911..1cf3aa9eb12 100644
--- a/source/param/params.c
+++ b/source/param/params.c
@@ -537,7 +537,7 @@ static myFILE *OpenConfFile( char *FileName )
("%s Unable to open configuration file \"%s\":\n\t%s\n",
func, FileName, strerror(errno)) );
free(ret);
- ret = NULL;
+ return NULL;
}
ret->p = ret->buf;