summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-08-21 16:17:17 -0700
committerJeremy Allison <jra@samba.org>2009-08-21 16:17:17 -0700
commitf9c0f889624681c9244140c263b4ed072980dbcc (patch)
tree0cb706fb9e7f93f6e4491cf07e8c4797c44da60d
parentba52f18bfecfd7b0ba22c4ad9e9b5bfd18f34c93 (diff)
downloadsamba-f9c0f889624681c9244140c263b4ed072980dbcc.tar.gz
samba-f9c0f889624681c9244140c263b4ed072980dbcc.tar.bz2
samba-f9c0f889624681c9244140c263b4ed072980dbcc.zip
Fix coverity CID: 932 - forward null.
Jeremy.
-rw-r--r--source3/smbd/share_access.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/share_access.c b/source3/smbd/share_access.c
index 5d779b9c81..a300d6f1de 100644
--- a/source3/smbd/share_access.c
+++ b/source3/smbd/share_access.c
@@ -130,8 +130,10 @@ static bool token_contains_name(TALLOC_CTX *mem_ctx,
continue;
}
if (*prefix == '&') {
- if (user_in_netgroup(sconn, username, name)) {
- return True;
+ if (username) {
+ if (user_in_netgroup(sconn, username, name)) {
+ return True;
+ }
}
continue;
}