2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

RRSIG: reject records with empty SIG section

This commit is contained in:
Mark Andrews 2020-08-17 11:21:41 +10:00 committed by Ondřej Surý
parent 3e743da1bd
commit f6d7b8c20d

View File

@ -311,6 +311,9 @@ fromwire_rrsig(ARGS_FROMWIRE) {
* Sig.
*/
isc_buffer_activeregion(source, &sr);
if (sr.length < 1) {
return (DNS_R_FORMERR);
}
isc_buffer_forward(source, sr.length);
return (mem_tobuffer(target, sr.base, sr.length));
}