Commit 743909af authored by Daniel Salzman's avatar Daniel Salzman

knotc: fix typo

parent 4282c9e6
......@@ -351,7 +351,7 @@ int main(int argc, char **argv)
r_port = atoi(optarg);
break;
case 'y':
knot_tsig_key_deinit(&params->r_key);
knot_tsig_key_deinit(&r_key);
if (knot_tsig_key_init_str(&r_key, optarg) != KNOT_EOK) {
rc = 1;
log_error("failed to parse TSIG key '%s'", optarg);
......@@ -359,7 +359,7 @@ int main(int argc, char **argv)
}
break;
case 'k':
knot_tsig_key_deinit(&params->r_key);
knot_tsig_key_deinit(&r_key);
if (knot_tsig_key_init_file(&r_key, optarg) != KNOT_EOK) {
rc = 1;
log_error("failed to parse TSIG key file '%s'", optarg);
......
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