Before a server could change delegation when there was an NS record
for different name in the answer section. e.g.:
```
QNAME: test.example.com
ANSWER: else.example.com NS somewhere
```
The zone cut would change to else.example.com.
struct tls_session_ticket_ctx *tls_session_ticket_ctx;
struct net_tcp_param tcp;
int tcp_backlog;
- struct net_tcp_param tcp;
};
void network_init(struct network *net, uv_loop_t *loop, int tcp_backlog);
for (unsigned i = 0; i < an->count; ++i) {
const knot_rrset_t *rr = knot_pkt_rr(an, i);
if (rr->type == KNOT_RRTYPE_NS
- && knot_dname_in_bailiwick(rr->owner, qry->zone_cut.name) > 0) {
+ && knot_dname_in_bailiwick(rr->owner, qry->zone_cut.name) > 0
+ && knot_dname_in_bailiwick(rr->owner, qry->sname) >= 0) {
/* NS below cut in authority indicates different authority,
* but same NS set. */
qry->zone_cut.name = knot_dname_copy(rr->owner, &req->pool);