s4:dcesrv_samr_QueryDomainInfo - allocate the "info" structure only when really needed
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 11 Jun 2010 21:57:39 +0000 (23:57 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 12 Jun 2010 14:45:47 +0000 (16:45 +0200)
commitcdecae6c03fd4ce49f3bcabfe5fccc1c9e7488b0
tree4a5ffef1e91db85ce5ba0bb90c4734fd225311b0
parent0171f714b4caf6ef67ea36729106b89e91706002
s4:dcesrv_samr_QueryDomainInfo - allocate the "info" structure only when really needed

That means the allocation should move after the lookup (as it is on
"QueryUserInfo"). Return "NT_STATUS_NO_SUCH_DOMAIN" on an invalid domain.
source4/rpc_server/samr/dcesrv_samr.c