]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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, 13 Apr 2010 18:18:52 +0000 (20:18 +0200)
metze
(cherry picked from commit 94a4bcd2f0c0464e192556679c6636639cb307ea)
(cherry picked from commit c046ae8428fb62ff2749689e7c738f1a2e8f8251)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd_cm.c

index 08684cc3706064b01d5c840bc9ffd5592a0e3131..2ef077dd5bc9f64f55e15b42c0709d92a6538f4d 100644 (file)
@@ -2449,8 +2449,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;
        }
 
        /*