s3: lib: libsmbclient: If reusing a server struct, check every cli->timout milisecond...
authorJeremy Allison <jra@samba.org>
Wed, 18 Mar 2015 21:15:16 +0000 (14:15 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Mar 2015 03:51:15 +0000 (04:51 +0100)
commit1f4edb0f791c4da5f6c247a7f2ccc8eafbaf28d0
treedc64b105c3b588c74401307ae278991219b83d03
parenta5156c61a200f687c80da2af3b1c3037665e3857
s3: lib: libsmbclient: If reusing a server struct, check every cli->timout miliseconds if it's still valid before use.

Uses an cli_echo() call to do so.

Based on code from <shargagan@novell.com>

Bug 11079 - libsmbclient not checking the cached connection alive status before re-using it from connection cache

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Mar 20 13:48:26 CET 2015 on sn-devel-104

(cherry picked from commit 4f4151ea050a5f34e42d73a4bf9448c673a35787)
source3/include/libsmb_internal.h
source3/libsmb/libsmb_server.c