]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Pass RCODE value to encode as int to local_error_encode()
authorRalph Dolmans <ralph@nlnetlabs.nl>
Fri, 23 Dec 2016 12:34:02 +0000 (12:34 +0000)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Fri, 23 Dec 2016 12:34:02 +0000 (12:34 +0000)
git-svn-id: file:///svn/unbound/trunk@3973 be551aaa-1e26-0410-a405-d3ace91eadb9

services/localzone.c

index 749dfc9f8942484902d2524bcfc735630e93f3ba..1b027552329e33881c2939fe2cce27b1aadcc72b 100644 (file)
@@ -1218,7 +1218,7 @@ local_encode(struct query_info* qinfo, struct module_env* env,
 static void
 local_error_encode(struct query_info* qinfo, struct module_env* env,
        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->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,
                rcode, edns, temp))
                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);
 }