s4:netlogon Fix warnings and segfault in GetDomainInfo call
authorAndrew Bartlett <abartlet@samba.org>
Tue, 4 Aug 2009 04:36:14 +0000 (14:36 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 4 Aug 2009 06:10:39 +0000 (16:10 +1000)
commit9b02d2391443c3c56d607d034d9d200703aa840b
tree9e38b6aa6a7c24e9339fde652068caf0d4af2891
parent1937ab3668e6a4667ac4334a6e1bea2cc75cfb1d
s4:netlogon Fix warnings and segfault in GetDomainInfo call

 - Correctly use samdb_search_string to do a 'base' search
   (this needs a NULL, not a "" argument for the format string)

 - There is no need (and it caused a security hole) to use
   talloc_asprintf() with the only argument being the string to
   duplicate.

Andrew Bartlett
source4/rpc_server/netlogon/dcerpc_netlogon.c