mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-03 05:19:34 -05:00
Pass RCODE value to encode as int to local_error_encode()
git-svn-id: file:///svn/unbound/trunk@3973 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b4b2c18909
commit
3869421258
1 changed files with 2 additions and 2 deletions
|
|
@ -1218,7 +1218,7 @@ local_encode(struct query_info* qinfo, struct module_env* env,
|
||||||
static void
|
static void
|
||||||
local_error_encode(struct query_info* qinfo, struct module_env* env,
|
local_error_encode(struct query_info* qinfo, struct module_env* env,
|
||||||
struct edns_data* edns, sldns_buffer* buf, struct regional* temp,
|
struct edns_data* edns, sldns_buffer* buf, struct regional* temp,
|
||||||
int rcode, uint16_t flags)
|
int rcode, int r)
|
||||||
{
|
{
|
||||||
edns->edns_version = EDNS_ADVERTISED_VERSION;
|
edns->edns_version = EDNS_ADVERTISED_VERSION;
|
||||||
edns->udp_size = EDNS_ADVERTISED_SIZE;
|
edns->udp_size = EDNS_ADVERTISED_SIZE;
|
||||||
|
|
@ -1228,7 +1228,7 @@ local_error_encode(struct query_info* qinfo, struct module_env* env,
|
||||||
if(!inplace_cb_reply_local_call(env, qinfo, NULL, NULL,
|
if(!inplace_cb_reply_local_call(env, qinfo, NULL, NULL,
|
||||||
rcode, edns, temp))
|
rcode, edns, temp))
|
||||||
edns->opt_list = NULL;
|
edns->opt_list = NULL;
|
||||||
error_encode(buf, flags, qinfo, *(uint16_t*)sldns_buffer_begin(buf),
|
error_encode(buf, r, qinfo, *(uint16_t*)sldns_buffer_begin(buf),
|
||||||
sldns_buffer_read_u16_at(buf, 2), edns);
|
sldns_buffer_read_u16_at(buf, 2), edns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue