mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r24874: Fix double free of smbcli_tree.
This commit is contained in:
parent
8dad4c5503
commit
84f14b5dd0
@ -1712,8 +1712,7 @@ static BOOL torture_samba3_errorpaths(struct torture_context *tctx)
|
||||
|
||||
NTSTATUS torture_base_init(void)
|
||||
{
|
||||
struct torture_suite *suite = torture_suite_create(
|
||||
talloc_autofree_context(), "BASE");
|
||||
struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "BASE");
|
||||
|
||||
torture_suite_add_2smb_test(suite, "FDPASS", run_fdpasstest);
|
||||
torture_suite_add_suite(suite, torture_base_locktest());
|
||||
@ -1747,8 +1746,7 @@ NTSTATUS torture_base_init(void)
|
||||
torture_suite_add_1smb_test(suite, "SECLEAK", torture_sec_leak);
|
||||
torture_suite_add_simple_test(suite, "DISCONNECT", torture_disconnect);
|
||||
torture_suite_add_suite(suite, torture_delay_write());
|
||||
torture_suite_add_simple_test(suite, "SAMBA3ERROR",
|
||||
torture_samba3_errorpaths);
|
||||
torture_suite_add_simple_test(suite, "SAMBA3ERROR", torture_samba3_errorpaths);
|
||||
torture_suite_add_1smb_test(suite, "CASETABLE", torture_casetable);
|
||||
torture_suite_add_1smb_test(suite, "UTABLE", torture_utable);
|
||||
torture_suite_add_simple_test(suite, "SMB", torture_smb_scan);
|
||||
|
@ -473,8 +473,8 @@ static BOOL scan_nttrans(struct smbcli_state *cli, int op, int level,
|
||||
}
|
||||
|
||||
|
||||
BOOL torture_nttrans_scan(struct torture_context *torture,
|
||||
struct smbcli_state *cli)
|
||||
bool torture_nttrans_scan(struct torture_context *torture,
|
||||
struct smbcli_state *cli)
|
||||
{
|
||||
int op, level;
|
||||
const char *fname = "\\scanner.dat";
|
||||
@ -499,8 +499,6 @@ BOOL torture_nttrans_scan(struct torture_context *torture,
|
||||
}
|
||||
}
|
||||
|
||||
torture_close_connection(cli);
|
||||
|
||||
printf("nttrans scan finished\n");
|
||||
return True;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user