mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-28 21:17:54 +00:00
RRSIG: reject records with empty SIG section
This commit is contained in:
parent
3e743da1bd
commit
f6d7b8c20d
@ -311,6 +311,9 @@ fromwire_rrsig(ARGS_FROMWIRE) {
|
|||||||
* Sig.
|
* Sig.
|
||||||
*/
|
*/
|
||||||
isc_buffer_activeregion(source, &sr);
|
isc_buffer_activeregion(source, &sr);
|
||||||
|
if (sr.length < 1) {
|
||||||
|
return (DNS_R_FORMERR);
|
||||||
|
}
|
||||||
isc_buffer_forward(source, sr.length);
|
isc_buffer_forward(source, sr.length);
|
||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user