NET-API-BECOME-DC: fix crash bugs because of unintialized variables
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Jul 2008 16:28:25 +0000 (18:28 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Jul 2008 10:12:29 +0000 (12:12 +0200)
metze
(This used to be commit 6acf42c2e41bb1d44c1fcaaaa58fc3f148491836)

source4/torture/libnet/libnet_BecomeDC.c

index 97a5ca9d71b01fa9bae4f7159c2f00bb02c7f18c..f34769de6c992da81a6a8ccea44b92d423795496 100644 (file)
@@ -75,10 +75,13 @@ static NTSTATUS test_become_dc_prepare_db(void *private_data,
        settings.domain_dn_str = p->domain->dn_str;
        settings.config_dn_str = p->forest->config_dn_str;
        settings.schema_dn_str = p->forest->schema_dn_str;
+       settings.server_dn_str = torture_join_server_dn_str(s->tj);
+       settings.invocation_id = &p->dest_dsa->invocation_id;
        settings.netbios_name = p->dest_dsa->netbios_name;
+       settings.host_ip = NULL;
        settings.realm = torture_join_dom_dns_name(s->tj);
        settings.domain = torture_join_dom_netbios_name(s->tj);
-       settings.server_dn_str = torture_join_server_dn_str(s->tj);
+       settings.ntds_dn_str = p->dest_dsa->ntds_dn_str;
        settings.machine_password = cli_credentials_get_password(s->machine_account);
        settings.targetdir = s->targetdir;