Skip to content
Snippets Groups Projects
Commit c2557ff7 authored by Karel Slaný's avatar Karel Slaný
Browse files

layer/validate: disabled validation of truncated messages

parent 2baf3dbd
No related branches found
No related tags found
No related merge requests found
......@@ -329,6 +329,11 @@ static int validate(knot_layer_t *ctx, knot_pkt_t *pkt)
return ctx->state;
}
/* Ignore truncated messages. */
if (knot_wire_get_tc(pkt->wire)) {
return ctx->state;
}
/* Server didn't copy back DO=1, this is okay if it doesn't have DS => insecure.
* If it has DS, it must be secured, fail it as bogus. */
if (!knot_pkt_has_dnssec(pkt)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment