fix 'WARNING: Message has 41 extra bytes at end'

This commit is contained in:
Artem 2023-12-05 09:43:15 +03:00 committed by GitHub
parent f72116883b
commit 389e820878
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1095,6 +1095,7 @@ deny_refuse(struct comm_point* c, enum acl_access acl,
LDNS_QR_SET(sldns_buffer_begin(c->buffer));
LDNS_RCODE_SET(sldns_buffer_begin(c->buffer),
LDNS_RCODE_REFUSED);
sldns_buffer_set_position(c->buffer, LDNS_HEADER_SIZE);
sldns_buffer_flip(c->buffer);
return 1;
}