summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-24 05:51:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-24 05:51:44 +0000
commit84f2875d7bac30e75397bbf89d3d5e79ba790ddc (patch)
tree17eec05f5084a68506c8be6ede733171b0c9cc4c /source3/smbd
parent24675d99e51609de542c70a8e6f39befeed46722 (diff)
downloadsamba-84f2875d7bac30e75397bbf89d3d5e79ba790ddc.tar.gz
samba-84f2875d7bac30e75397bbf89d3d5e79ba790ddc.tar.bz2
samba-84f2875d7bac30e75397bbf89d3d5e79ba790ddc.zip
If lp_add_home() fails, don't go any further, just return -1.
Andrew Bartlett (This used to be commit 2febc7ce1aa6b01ec68bd007ce0286813dff301d)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 4e6530674b..7dd61f2325 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -104,7 +104,9 @@ int add_home_service(const char *service, const char *username, const char *home
}
}
- lp_add_home(service, iHomeService, username, homedir);
+ if (!lp_add_home(service, iHomeService, username, homedir)) {
+ return -1;
+ }
return lp_servicenumber(service);