s3: libsmb: Correctly do lifecycle management on cli->smb1.tcon and cli->smb2.tcon.
authorJeremy Allison <jra@samba.org>
Tue, 13 Jun 2017 23:37:39 +0000 (16:37 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 17 Jun 2017 04:39:20 +0000 (06:39 +0200)
commit50f50256aa8805921c42d0f9f2f8f89d06d9bd93
tree33ea461a5cced66a203e54afb84763e024c57816
parentc9178ed9cc69b9089292db28ac1a0b7a0519bc2c
s3: libsmb: Correctly do lifecycle management on cli->smb1.tcon and cli->smb2.tcon.

Treat them identically. Create them on demand after for a tcon call,
and delete them on a tdis call.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12831

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
source3/libsmb/cliconnect.c
source3/libsmb/clientgen.c