git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a7eb52
)
r23757: Fix Coverity id 386
author
Volker Lendecke
<vlendec@samba.org>
Mon, 9 Jul 2007 08:00:50 +0000
(08:00 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:23:53 +0000
(12:23 -0500)
(This used to be commit
91be38f7ab42991e04a41e91132137a834c10996
)
source3/utils/net_rpc.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc.c
b/source3/utils/net_rpc.c
index 844207bff2a838f7725113f1685a7ecd64c93ea0..3c722d2760b6ccf3f0d4868f7da2f1b90b0dd0d6 100644
(file)
--- a/
source3/utils/net_rpc.c
+++ b/
source3/utils/net_rpc.c
@@
-4074,7
+4074,11
@@
static void init_user_token(NT_USER_TOKEN *token, DOM_SID *user_sid)
{
token->num_sids = 4;
- token->user_sids = SMB_MALLOC_ARRAY(DOM_SID, 4);
+ if (!(token->user_sids = SMB_MALLOC_ARRAY(DOM_SID, 4))) {
+ d_fprintf(stderr, "malloc failed\n");
+ token->num_sids = 0;
+ return;
+ }
token->user_sids[0] = *user_sid;
sid_copy(&token->user_sids[1], &global_sid_World);