summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-25 15:25:47 +0100
committerKarolin Seeger <kseeger@samba.org>2010-05-06 14:08:37 +0200
commit4701e4a4065513416819d3091cf25bb2ba814622 (patch)
treea0916e721c18921d8f952f1499042608ce94e634
parent1598876fb7003601380ecf3e0e3468ec37be5c85 (diff)
downloadsamba-4701e4a4065513416819d3091cf25bb2ba814622.tar.gz
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 <metze@samba.org> (cherry picked from commit 61a353807ccefef98fa83e5abcebfe879cdf4337)
-rw-r--r--source3/winbindd/winbindd_cm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 2b45e275add..d78742f5041 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -2452,8 +2452,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;
}
/*