Commit 4cb8f251 authored by Daniel Salzman's avatar Daniel Salzman

kdig: fix detection of the NOTIFY query

parent 375f8a6c
......@@ -254,7 +254,7 @@ int params_parse_type(const char *value, uint16_t *rtype, int64_t *serial,
char *type_char = strndup(value, param_pos);
if (knot_rrtype_from_string(type_char, rtype) != 0) {
if (strncasecmp(type_char, "NOTIFY", param_pos) == 0) {
if (strncasecmp(type_char, "NOTIFY", strlen("NOTIFY")) == 0) {
*rtype = KNOT_RRTYPE_SOA;
*notify = true;
} else {
......
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