1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3:winbindd: use check dcerpc_binding_handle_is_connected() instead of a specific status

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher 2015-06-29 09:52:45 +02:00 committed by Günther Deschner
parent 24ea9175f4
commit 793af3f2ae

View File

@ -774,7 +774,7 @@ reconnect:
logon_server, NETLOGON_CONTROL_QUERY,
2, &info, &werr);
if (NT_STATUS_EQUAL(status, NT_STATUS_IO_DEVICE_ERROR) && !retry) {
if (!dcerpc_binding_handle_is_connected(b) && !retry) {
DEBUG(10, ("Session might have expired. "
"Reconnect and retry once.\n"));
invalidate_cm_connection(domain);