summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-25 15:25:47 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-29 18:11:18 +0200
commit94a4bcd2f0c0464e192556679c6636639cb307ea (patch)
tree140694345ea8545ea090bd8b95cd648127d508c1
parent4f391fedac7111683d13f2d79fee7c0dbc27f86e (diff)
downloadsamba-94a4bcd2f0c0464e192556679c6636639cb307ea.tar.gz
samba-94a4bcd2f0c0464e192556679c6636639cb307ea.tar.bz2
samba-94a4bcd2f0c0464e192556679c6636639cb307ea.zip
s3:winbindd_cm: invalidate connection if cm_connect_netlogon() fails
metze
-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 c5f93728ba..0f0d5f8107 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -2464,8 +2464,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;
}
/*