diff options
author | Jeremy Allison <jra@samba.org> | 2021-01-28 10:46:33 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2021-02-03 20:27:07 +0000 |
commit | 2a6ba7ab9eb7d5371e1de2a50d5e63ed214f88f0 (patch) | |
tree | ebb286cfee40021ef068a5b90d328a402b23648c /source3 | |
parent | 47581202cf32c2f9103103d987e6d8e694cee532 (diff) | |
download | samba-2a6ba7ab9eb7d5371e1de2a50d5e63ed214f88f0.tar.gz |
s3: smbtorture3: Ensure we *always* replace the saved saved_tcon even in an error condition.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13992
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit dc701959cad7bf15aa47cad6451212606520f67f)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/test_smb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index d5023d88cfd..3e25a562bd6 100644 --- a/source3/torture/test_smb2.c +++ b/source3/torture/test_smb2.c @@ -188,11 +188,11 @@ bool run_smb2_basic(int dummy) cli->timeout, cli->smb2.session, cli->smb2.tcon); + cli_state_restore_tcon(cli, saved_tcon); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_tdis returned %s\n", nt_errstr(status)); return false; } - cli_state_restore_tcon(cli, saved_tcon); status = smb2cli_tdis(cli->conn, cli->timeout, |