From: Ralph Boehme Date: Mon, 12 Mar 2018 10:29:22 +0000 (+0100) Subject: winbindd: make reset_cm_connection_on_error() public X-Git-Tag: talloc-2.1.12~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17749a5d9fa08da1c61de45728656a2c9b85782d;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 7eff25a5bdf..861451c0fc9 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 f8ffeea74cf..a8ecfafc997 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_ */