diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-28 05:44:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:25 -0500 |
commit | b2f1a29e4348a5bc34a87d72d526e23e421ed9d5 (patch) | |
tree | c69987090647da615193f1361e03986588ac164d /source4/torture/torture.c | |
parent | a675b09e8d45b9298df8f8c82bbaa7b91a793eb5 (diff) | |
download | samba-b2f1a29e4348a5bc34a87d72d526e23e421ed9d5.tar.gz samba-b2f1a29e4348a5bc34a87d72d526e23e421ed9d5.tar.bz2 samba-b2f1a29e4348a5bc34a87d72d526e23e421ed9d5.zip |
r2710: continue with the new style of providing a parent context whenever
possible to a structure creation routine. This makes for much easier
global cleanup.
(This used to be commit e14ee428ec357fab76a960387a9820a673786e27)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r-- | source4/torture/torture.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index c6af807357..15be6e528b 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -43,7 +43,7 @@ static struct smbcli_state *open_nbt_connection(void) make_nmb_name(&calling, lp_netbios_name(), 0x0); choose_called_name(&called, host, 0x20); - cli = smbcli_state_init(); + cli = smbcli_state_init(NULL); if (!cli) { printf("Failed initialize smbcli_struct to connect with %s\n", host); return NULL; @@ -93,7 +93,8 @@ BOOL torture_open_connection_share(struct smbcli_state **c, if (use_kerberos) flags |= SMBCLI_FULL_CONNECTION_USE_KERBEROS; - status = smbcli_full_connection(c, lp_netbios_name(), + status = smbcli_full_connection(NULL, + c, lp_netbios_name(), hostname, NULL, sharename, "?????", username, username[0]?userdomain:"", @@ -857,7 +858,8 @@ static BOOL run_tcon_devtype_test(int dummy) const char *userdomain = lp_parm_string(-1, "torture", "userdomain"); const char *password = lp_parm_string(-1, "torture", "password"); - status = smbcli_full_connection(&cli1, lp_netbios_name(), + status = smbcli_full_connection(NULL, + &cli1, lp_netbios_name(), host, NULL, share, "?????", username, userdomain, |