diff options
author | Simo Sorce <idra@samba.org> | 2001-10-03 21:10:29 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-10-03 21:10:29 +0000 |
commit | a42efb497153dcca1fad227e28f5eaf41ee943c3 (patch) | |
tree | a3a2ea3db448af8624ea6b7cc86094d278dbd95f /source3/rpc_server | |
parent | 9d4e919f4a3c901c9e70bd710335f94cc5b726df (diff) | |
download | samba-a42efb497153dcca1fad227e28f5eaf41ee943c3.tar.gz samba-a42efb497153dcca1fad227e28f5eaf41ee943c3.tar.bz2 samba-a42efb497153dcca1fad227e28f5eaf41ee943c3.zip |
fix some possible memleaks and not tested reallocs spotted by Andreas Moroder
(This used to be commit d30939a091b48f4d77f7618c75668ae151a5592e)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_lsa_nt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index eeaf9c6347..3282fbca9f 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -722,6 +722,7 @@ NTSTATUS _lsa_enum_privsaccount(pipes_struct *p, LSA_Q_ENUMPRIVSACCOUNT *q_u, LS if ( (map.privilege & privs[i].se_priv) == privs[i].se_priv) { set=(LUID_ATTR *)talloc_realloc(p->mem_ctx, set, (count+1)*sizeof(LUID_ATTR)); + if (set == NULL) return NT_STATUS_NO_MEMORY; set[count].luid.low=privs[i].se_priv; set[count].luid.high=1; |