r21549: Only create DISP_INFO structs for domain handles, the others don't need
commit0aceda68a825788895759e79de55b080ad3f971d
authorVolker Lendecke <vlendec@samba.org>
Mon, 26 Feb 2007 22:44:24 +0000 (26 22:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:12 +0000 (10 12:18 -0500)
tree206904a40da84dd9a46e096ae51c1304e1d7318f
parentb5fd72282da85f50a040fd949752bc71023ff055
r21549: Only create DISP_INFO structs for domain handles, the others don't need
them. It just does not make sense to do a querydispinfo on an alias handle...

This fixes a memleak: Every samr_connect*() call leaked a DISP_INFO for the
(NULL) sid.

More cleanup pending: Essentially, we only need the DISP_INFO cache for the
get_global_sam_sid() domain. BUILTIN is fixed and small enough, and there are
no other domains around where enumerations could happen.

This also removes the explicit builtin_domain flags. I don't think this is
worth it. If this makes a significant difference, then we have a *VERY* tuned
RPC layer...

Jeremy, please check this. If it's ok, we might want to merge it across.

Volker
source/rpc_server/srv_samr_nt.c