From 17749a5d9fa08da1c61de45728656a2c9b85782d Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 12 Mar 2018 11:29:22 +0100 Subject: [PATCH] winbindd: make reset_cm_connection_on_error() public Bug: https://bugzilla.samba.org/show_bug.cgi?id=13332 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- source3/winbindd/winbindd_dual_srv.c | 4 ++-- source3/winbindd/winbindd_proto.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 7eff25a5bdf4..861451c0fc92 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -41,8 +41,8 @@ void _wbint_Ping(struct pipes_struct *p, struct wbint_Ping *r) *r->out.out_data = r->in.in_data; } -static bool reset_cm_connection_on_error(struct winbindd_domain *domain, - NTSTATUS status) +bool reset_cm_connection_on_error(struct winbindd_domain *domain, + NTSTATUS status) { if (NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT) || NT_STATUS_EQUAL(status, NT_STATUS_IO_DEVICE_ERROR)) diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index f8ffeea74cf0..a8ecfafc9975 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -961,4 +961,8 @@ bool reconnect_need_retry(NTSTATUS status, struct winbindd_domain *domain); /* The following definitions come from winbindd/winbindd_gpupdate.c */ void gpupdate_init(void); +/* The following comes from winbindd/winbindd_dual_srv.c */ +bool reset_cm_connection_on_error(struct winbindd_domain *domain, + NTSTATUS status); + #endif /* _WINBINDD_PROTO_H_ */ -- 2.34.1