diff options
-rw-r--r-- | source3/auth/auth_util.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 59406283b3..c75b12e0b9 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -488,9 +488,11 @@ NTSTATUS create_local_token(struct auth_serversupplied_info *server_info) "ignoring it\n", sid_string_dbg(sid))); continue; } - add_gid_to_array_unique(server_info, gid, - &server_info->utok.groups, - &server_info->utok.ngroups); + if (!add_gid_to_array_unique(server_info, gid, + &server_info->utok.groups, + &server_info->utok.ngroups)) { + return NT_STATUS_NO_MEMORY; + } } /* |