From: Stefan Metzmacher Date: Thu, 25 Mar 2010 14:25:47 +0000 (+0100) Subject: s3:winbindd_cm: invalidate connection if cm_connect_netlogon() fails X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61a353807ccefef98fa83e5abcebfe879cdf4337;p=thirdparty%2Fsamba.git s3:winbindd_cm: invalidate connection if cm_connect_netlogon() fails metze (cherry picked from commit 94a4bcd2f0c0464e192556679c6636639cb307ea) (cherry picked from commit c046ae8428fb62ff2749689e7c738f1a2e8f8251) Signed-off-by: Stefan Metzmacher --- diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 08684cc3706..2ef077dd5bc 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -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; } /*