mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 01:28:05 -04:00
SIG: reject records with a zero length signature
(cherry picked from commit 9b93e5d684)
This commit is contained in:
parent
10e8ad22c5
commit
b4a66cffa8
1 changed files with 3 additions and 0 deletions
|
|
@ -274,6 +274,9 @@ fromwire_sig(ARGS_FROMWIRE) {
|
|||
* Sig.
|
||||
*/
|
||||
isc_buffer_activeregion(source, &sr);
|
||||
if (sr.length == 0) {
|
||||
return (ISC_R_UNEXPECTEDEND);
|
||||
}
|
||||
isc_buffer_forward(source, sr.length);
|
||||
return (mem_tobuffer(target, sr.base, sr.length));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue