From 99c800bbd8e20be51c4c6a70fa1d4e8324dc7a12 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 1 Jul 2013 13:02:44 +0200 Subject: torture: Don't segfault in smb2.session on error. Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison (cherry picked from commit bf5bc723da0605c7bc796f5e047e3f041db0b943) --- source4/torture/smb2/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture/smb2') diff --git a/source4/torture/smb2/session.c b/source4/torture/smb2/session.c index 9592b5ef8d..6901f47300 100644 --- a/source4/torture/smb2/session.c +++ b/source4/torture/smb2/session.c @@ -863,7 +863,7 @@ static bool test_session_expire1(struct torture_context *tctx) const char *host = torture_setting_string(tctx, "host", NULL); const char *share = torture_setting_string(tctx, "share", NULL); struct cli_credentials *credentials = cmdline_credentials; - struct smb2_tree *tree; + struct smb2_tree *tree = NULL; enum credentials_use_kerberos use_kerberos; char fname[256]; struct smb2_handle _h1; -- cgit