winbindd: Reset connection for expired session before reconnecting
authorChristof Schmitt <cs@samba.org>
Tue, 5 Jan 2016 20:39:25 +0000 (13:39 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 14 Jan 2016 09:13:24 +0000 (10:13 +0100)
commit39e6b5b8d5d512e9dfcaaca613e9140e98b6897b
tree8b9ec4915845bbdeb95695e1251213dd9af64a7a
parent40bc9b04a0cc1d8f6f9727de43f532e9f416d8e5
winbindd: Reset connection for expired session before reconnecting

A RPC call on a expired SMB2 session returns IO_DEVICE_ERROR. In this
case, reset the connection before issuing the same call
again.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit fb5b0cec3c0c2e0cf9cb04f8b52ee910ac245aeb)
source3/winbindd/winbindd_reconnect.c