diff options
author | Jeremy Allison <jra@samba.org> | 2009-08-21 16:17:17 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-08-21 16:17:17 -0700 |
commit | f9c0f889624681c9244140c263b4ed072980dbcc (patch) | |
tree | 0cb706fb9e7f93f6e4491cf07e8c4797c44da60d /source3 | |
parent | ba52f18bfecfd7b0ba22c4ad9e9b5bfd18f34c93 (diff) | |
download | samba-f9c0f889624681c9244140c263b4ed072980dbcc.tar.gz samba-f9c0f889624681c9244140c263b4ed072980dbcc.tar.bz2 samba-f9c0f889624681c9244140c263b4ed072980dbcc.zip |
Fix coverity CID: 932 - forward null.
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/share_access.c | 6 |
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; } |