summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-16 18:45:50 +0100
committerVolker Lendecke <vl@samba.org>2011-03-16 21:14:58 +0100
commit920b2fddc6b442ad4f1eb72dcb38921876182b8b (patch)
tree9f9b258c25db9d013c3c727d95d3a67f5125ac4a /source3/auth
parent4668ac8b16daddacbaa0fe0e7ecdfbe6309abd3a (diff)
downloadsamba-920b2fddc6b442ad4f1eb72dcb38921876182b8b.tar.gz
samba-920b2fddc6b442ad4f1eb72dcb38921876182b8b.tar.bz2
samba-920b2fddc6b442ad4f1eb72dcb38921876182b8b.zip
s3: Fix Coverity ID 1018, CHECKED_RETURN
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c8
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;
+ }
}
/*