From c2ff51150fb8d9289c0806fd57af8e70539298ff Mon Sep 17 00:00:00 2001 From: Diego Fronza Date: Fri, 12 Mar 2021 16:06:03 -0300 Subject: [PATCH] Use correct result code on dns_rrl The dns_rrl function's return type, dns_rrl_result_t, is an enumerated type defined in file lib/dns/include/dns/rrl.h, before the result code API update, the previous returning of ISC_R_SUCCESS within this function was compatible with DNS_RRL_RESULT_OK, both had the same value of zero. After the refactor of the result code API, this is no more true, these result codes hold different values, besides, the correct result code to use within this function is DNS_RRL_RESULT_OK and not ISC_R_SUCCESS. --- lib/dns/rrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/rrl.c b/lib/dns/rrl.c index 36fcad996b..c24c027430 100644 --- a/lib/dns/rrl.c +++ b/lib/dns/rrl.c @@ -1113,7 +1113,7 @@ dns_rrl(dns_view_t *view, const isc_sockaddr_t *client_addr, bool is_tcp, } } UNLOCK(&rrl->lock); - return (ISC_R_SUCCESS); + return (DNS_RRL_RESULT_OK); } /*