diff options
-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; } |