summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-07 14:28:23 +0200
committerVolker Lendecke <vl@samba.org>2008-05-10 11:17:00 +0200
commitd2157f13422da4991ffcc007c7bc3c07e1f42912 (patch)
tree539513f15a5d63e6b9375acebe353a2b9a5d9051 /source3
parent39bd6a95959e9015262b7b4250d3fcd58be44fc9 (diff)
downloadsamba-d2157f13422da4991ffcc007c7bc3c07e1f42912.tar.gz
samba-d2157f13422da4991ffcc007c7bc3c07e1f42912.tar.bz2
samba-d2157f13422da4991ffcc007c7bc3c07e1f42912.zip
Add an error return in find_forced_group()
(This used to be commit 93ce0705c14f222bda3e6204f4b54ba1893f33e1)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 60d962f3fd..30e48018e9 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -557,6 +557,11 @@ static NTSTATUS find_forced_group(bool force_user,
groupname = talloc_string_sub(talloc_tos(), groupname,
"%S", lp_servicename(snum));
+ if (groupname == NULL) {
+ DEBUG(1, ("talloc_string_sub failed\n"));
+ result = NT_STATUS_NO_MEMORY;
+ goto done;
+ }
if (!lookup_name_smbconf(talloc_tos(), groupname,
LOOKUP_NAME_ALL|LOOKUP_NAME_GROUP,