diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-04-26 11:23:26 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-04-26 11:23:26 +0000 |
commit | d3348d437fb0408bc24892ebd0b035686c294705 (patch) | |
tree | 01c1d94467622a175fad10cd34a2f6f05d32c1b7 /validator/val_utils.c | |
parent | 54dd3272da3f4a5fda7dd6ac359b7cf68e21a796 (diff) |
Diffstat (limited to 'validator/val_utils.c')
-rw-r--r-- | validator/val_utils.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validator/val_utils.c b/validator/val_utils.c index ecf2dfaf05c89..475b0c9054e04 100644 --- a/validator/val_utils.c +++ b/validator/val_utils.c @@ -846,6 +846,18 @@ val_fill_reply(struct reply_info* chase, struct reply_info* orig, chase->ar_numrrsets; } +void val_reply_remove_auth(struct reply_info* rep, size_t index) +{ + log_assert(index < rep->rrset_count); + log_assert(index >= rep->an_numrrsets); + log_assert(index < rep->an_numrrsets+rep->ns_numrrsets); + memmove(rep->rrsets+index, rep->rrsets+index+1, + sizeof(struct ub_packed_rrset_key*)* + (rep->rrset_count - index - 1)); + rep->ns_numrrsets--; + rep->rrset_count--; +} + void val_check_nonsecure(struct val_env* ve, struct reply_info* rep) { |