summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-07-15 18:28:25 +0200
committerStefan Metzmacher <metze@samba.org>2008-07-16 12:12:29 +0200
commitdfb1ba3d9eb93a0b0c65393989d7bd31190c679b (patch)
tree460876c2bc4d7b16dc3cc6e5b2a655c2554cc4de
parent0c4738a4119349abb8c00daf582647904fcf64de (diff)
downloadsamba-dfb1ba3d9eb93a0b0c65393989d7bd31190c679b.tar.gz
samba-dfb1ba3d9eb93a0b0c65393989d7bd31190c679b.tar.bz2
samba-dfb1ba3d9eb93a0b0c65393989d7bd31190c679b.zip
NET-API-BECOME-DC: fix crash bugs because of unintialized variables
metze (This used to be commit 6acf42c2e41bb1d44c1fcaaaa58fc3f148491836)
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index 97a5ca9d71..f34769de6c 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -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;