diff options
author | Andreas Schneider <asn@samba.org> | 2013-07-01 13:02:44 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-07-02 12:30:43 -0700 |
commit | bf5bc723da0605c7bc796f5e047e3f041db0b943 (patch) | |
tree | f14aa91b005946425e1dce7a8437a80bdd66c14c /source4 | |
parent | d295e18409a2e18e52c5bb76fec0e0540b6199cf (diff) | |
download | samba-bf5bc723da0605c7bc796f5e047e3f041db0b943.tar.gz samba-bf5bc723da0605c7bc796f5e047e3f041db0b943.tar.bz2 samba-bf5bc723da0605c7bc796f5e047e3f041db0b943.zip |
torture: Don't segfault in smb2.session on error.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |