s3:winbindd_cm: invalidate connection if cm_connect_netlogon() fails
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Mar 2010 14:25:47 +0000 (15:25 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 30 Mar 2010 08:33:42 +0000 (10:33 +0200)
metze
(cherry picked from commit 94a4bcd2f0c0464e192556679c6636639cb307ea)
(cherry picked from commit c046ae8428fb62ff2749689e7c738f1a2e8f8251)

source3/winbindd/winbindd_cm.c

index 96ad9f2c915f5de1d207a38e2031e4226ffccf72..e8677bbbd491f60fbedabec941c5ca18a9dab07c 100644 (file)
@@ -2463,8 +2463,8 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
                DEBUG(3, ("Could not open schannel'ed NETLOGON pipe. Error "
                          "was %s\n", nt_errstr(result)));
 
-               /* make sure we return something besides OK */
-               return !NT_STATUS_IS_OK(result) ? result : NT_STATUS_PIPE_NOT_AVAILABLE;
+               invalidate_cm_connection(conn);
+               return result;
        }
 
        /*