diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-08-25 06:44:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:21 -0500 |
commit | ede02ee03867d2f6582c446fcab0882072baaa5a (patch) | |
tree | ea7e56a1b9f1552cc9752cf8736084555005518c /source4/rpc_server/samr/dcesrv_samr.h | |
parent | 294f6f16947c56d3fac5b24e5c95e8df522e18d6 (diff) | |
download | samba-ede02ee03867d2f6582c446fcab0882072baaa5a.tar.gz samba-ede02ee03867d2f6582c446fcab0882072baaa5a.tar.xz samba-ede02ee03867d2f6582c446fcab0882072baaa5a.zip |
r2051: switched the samdb over to using the new destructor and reference
count features of talloc, instead of re-implementing both those
features inside of samdb (which is what we did before).
This makes samdb considerably simpler, and also fixes some bugs, as I
found some error paths that didn't call samdb_close(). Those are now
handled by the fact that a talloc_free() will auto-close and destroy
the samdb context, using a destructor.
(This used to be commit da60987a92266734c33b81ee217081abdc4330f3)
Diffstat (limited to 'source4/rpc_server/samr/dcesrv_samr.h')
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.h b/source4/rpc_server/samr/dcesrv_samr.h index 205e1072079..9e41937328c 100644 --- a/source4/rpc_server/samr/dcesrv_samr.h +++ b/source4/rpc_server/samr/dcesrv_samr.h @@ -36,9 +36,7 @@ enum samr_handle { state asscoiated with a samr_Connect*() operation */ struct samr_connect_state { - int reference_count; void *sam_ctx; - TALLOC_CTX *mem_ctx; uint32_t access_mask; }; @@ -47,9 +45,7 @@ struct samr_connect_state { */ struct samr_domain_state { struct samr_connect_state *connect_state; - int reference_count; void *sam_ctx; - TALLOC_CTX *mem_ctx; uint32_t access_mask; const char *domain_sid; const char *domain_name; @@ -62,7 +58,6 @@ struct samr_domain_state { struct samr_account_state { struct samr_domain_state *domain_state; void *sam_ctx; - TALLOC_CTX *mem_ctx; uint32_t access_mask; const char *account_sid; const char *account_name; |