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.
This commit is contained in:
committed by
Diego dos Santos Fronza
parent
f4b387cb8e
commit
c2ff51150f
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user