s3:winbindd: use check dcerpc_binding_handle_is_connected() instead of a specific...
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Jun 2015 07:52:45 +0000 (09:52 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 3 Jul 2015 00:00:28 +0000 (02:00 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/winbindd/winbindd_dual_srv.c

index 97d8a1b3e890ee8ff99f74e4fd20bdcf7865b655..40919d72fea63497bc6bf06586b3f414948da99b 100644 (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);