summaryrefslogtreecommitdiff
path: root/source3/auth/user_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/auth/user_util.c')
-rw-r--r--source3/auth/user_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/auth/user_util.c b/source3/auth/user_util.c
index 8938aeb003..4842192051 100644
--- a/source3/auth/user_util.c
+++ b/source3/auth/user_util.c
@@ -164,7 +164,9 @@ bool user_in_netgroup(TALLOC_CTX *ctx, const char *user, const char *ngname)
if (!lowercase_user) {
return false;
}
- strlower_m(lowercase_user);
+ if (!strlower_m(lowercase_user)) {
+ return false;
+ }
if (strcmp(user,lowercase_user) == 0) {
/* user name was already lower case! */