From cc0fc9824497b7ccc33d50440a59ffcd0f1dd2e2 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 21 Jan 2025 17:57:00 -0800 Subject: [PATCH] wrap ns_client_error() for unit testing When testing, the client object doesn't have a proper netmgr handle, so ns_client_error() needs to be a no-op. (cherry picked from commit ae37ef45ff45db4919842ad29d3f8dfe0c77c76c) --- tests/ns/netmgr_wrap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ns/netmgr_wrap.c b/tests/ns/netmgr_wrap.c index 725392fc5a..38dbf076c6 100644 --- a/tests/ns/netmgr_wrap.c +++ b/tests/ns/netmgr_wrap.c @@ -97,3 +97,9 @@ isc_nmhandle_detach(isc_nmhandle_t **handlep) { return; } + +void +ns_client_error(ns_client_t *client ISC_ATTR_UNUSED, + isc_result_t result ISC_ATTR_UNUSED) { + return; +}