git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39bd6a9
)
Add an error return in find_forced_group()
author
Volker Lendecke
<vl@samba.org>
Wed, 7 May 2008 12:28:23 +0000
(14:28 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sat, 10 May 2008 09:17:00 +0000
(11:17 +0200)
(This used to be commit
93ce0705c14f222bda3e6204f4b54ba1893f33e1
)
source3/smbd/service.c
patch
|
blob
|
history
diff --git
a/source3/smbd/service.c
b/source3/smbd/service.c
index 60d962f3fdf631c85375aa402622f79331743ab2..30e48018e9a6449e71d90f63b072776364a53ada 100644
(file)
--- 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,