r21549: Only create DISP_INFO structs for domain handles, the others don't need
commiteccb9b7962a71541651bd63bff1ff85c80e70b77
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)
tree855cc7463868722fd2df5ed82fd8d94f101008d4
parentbdc612a09861af69eb711fd4704bf5641b3209aa
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
(This used to be commit 0aceda68a825788895759e79de55b080ad3f971d)
source3/rpc_server/srv_samr_nt.c