winbindd: make reset_cm_connection_on_error() public
authorRalph Boehme <slow@samba.org>
Mon, 12 Mar 2018 10:29:22 +0000 (11:29 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 15 Mar 2018 14:46:09 +0000 (15:46 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13332

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/winbindd/winbindd_dual_srv.c
source3/winbindd/winbindd_proto.h

index 7eff25a5bdf4546d59bd2410d8c03d566c4e4c68..861451c0fc926952e3b92deea58c8d5b72217809 100644 (file)
@@ -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))
index f8ffeea74cf00ad6e562e90ed1e71cae2434da96..a8ecfafc9975ad17b7851e72c87547c23043d604 100644 (file)
@@ -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_  */