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)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 20 Mar 2015 12:48:26 +0000 (13:48 +0100)
commit4f4151ea050a5f34e42d73a4bf9448c673a35787
tree07eb42323c87d1fc0468f7d6c7ab4b9b6028e925
parent00d92f59257ce8fe1729becd72e13a42dfff0589
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
source3/include/libsmb_internal.h
source3/libsmb/libsmb_server.c