diff options
author | Jeremy Allison <jra@samba.org> | 2002-04-04 02:39:57 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-04-04 02:39:57 +0000 |
commit | adc57a79d99cfb6e0f5a1ba94275bb40eeb95bb7 (patch) | |
tree | 51c483b35db87dcf641e31a8c7a61f5a1a0da587 /source3/rpc_parse | |
parent | 04014751ddc9219f112afc7dc761a80ffddd78c4 (diff) | |
download | samba-adc57a79d99cfb6e0f5a1ba94275bb40eeb95bb7.tar.gz samba-adc57a79d99cfb6e0f5a1ba94275bb40eeb95bb7.tar.bz2 samba-adc57a79d99cfb6e0f5a1ba94275bb40eeb95bb7.zip |
Fixed the handle leak in the connection management code (this code is crap
and should be rewritten, just not now... :-).
Jeremy.
(This used to be commit 5de792e7e9c2ad1422ac146caba632baa3f4e5c5)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_lsa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c index fd82325be7..91b54b9c83 100644 --- a/source3/rpc_parse/parse_lsa.c +++ b/source3/rpc_parse/parse_lsa.c @@ -2094,4 +2094,10 @@ BOOL lsa_io_r_removeprivs(char *desc, LSA_R_REMOVEPRIVS *r_c, prs_struct *ps, in return True; } +BOOL policy_handle_is_valid(const POLICY_HND *hnd) +{ + POLICY_HND zero_pol; + ZERO_STRUCT(zero_pol); + return ((memcmp(&zero_pol, hnd, sizeof(POLICY_HND)) == 0) ? False : True ); +} |