Commit f1a33386 authored by Marek Vavrusa's avatar Marek Vavrusa Committed by Ondřej Surý

build: fixed build, removed unused variables

parent 8a8e91e0
......@@ -90,7 +90,6 @@ static int opt_rr_put_cookie_opt(knot_rrset_t *opt_rr, uint8_t *option, knot_mm_
{
assert(opt_rr && option);
uint8_t *reserved_data = NULL;
uint16_t opt_code = knot_edns_opt_get_code(option);
if (opt_code != KNOT_EDNS_OPTION_COOKIE) {
return kr_error(EINVAL);
......
......@@ -402,8 +402,6 @@ static bool is_modified(const struct kr_cookie_comp *running,
{
assert(running);
bool ret = false;
if (alg_lookup && alg_lookup->id >= 0) {
if (running->alg_id != alg_lookup->id) {
return true;
......@@ -650,7 +648,7 @@ int config_init(struct kr_cookie_ctx *ctx)
if (!clookup || !slookup) {
free(cs);
free(ss);
return kr_error(ENOKEY);
return kr_error(ENOENT);
}
ctx->clnt.current.secr = cs;
......
......@@ -415,8 +415,6 @@ int check_request(knot_layer_t *ctx, void *module_param)
.time = req->current_query->timestamp.tv_sec
};
const struct kr_query *qry = req->current_query;
if (!cookies.sc) {
/* Request has no server cookie. */
return_state = invalid_sc_status(return_state, false,
......
......@@ -65,8 +65,6 @@ int cookies_init(struct kr_module *module)
KR_EXPORT
int cookies_deinit(struct kr_module *module)
{
struct engine *engine = module->data;
struct kr_cookie_ctx *cookie_ctx = module->data;
config_deinit(cookie_ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment