s4-netlogond: Fix use of uninitialised value dns_name
authorAndrew Bartlett <abartlet@samba.org>
Mon, 27 Feb 2012 05:46:22 +0000 (16:46 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 27 Feb 2012 06:36:05 +0000 (07:36 +0100)
commite7397eeaa2631cde263ff324fda8fafa290bff8c
tree8f1462102dfc953b633a7b1f784477df2f1e4195
parent90c03ccf4c7bb33ac8b6c1338ec97642bcf8251b
s4-netlogond: Fix use of uninitialised value dns_name

The GET_CHECK_STR macro (now unrolled) did not initialise the trusts->array[n].dns_name
when the value was not set.  New tests for our trusted domains code create
domain trusts without a DNS domain name.  Found by the autobuild flakey build detector.

Andrew Bartlett
source4/rpc_server/netlogon/dcerpc_netlogon.c