mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 17:30:22 -04:00
Merge branch 'v9_10' of /proj/git/prod/bind9 into v9_10
This commit is contained in:
commit
7b094389de
2 changed files with 4 additions and 0 deletions
|
|
@ -318,6 +318,8 @@ tostruct_hip(ARGS_TOSTRUCT) {
|
|||
goto cleanup;
|
||||
isc_region_consume(®ion, hip->hit_len);
|
||||
|
||||
INSIST(hip->key_len <= region.length);
|
||||
|
||||
hip->key = mem_maybedup(mctx, region.base, hip->key_len);
|
||||
if (hip->key == NULL)
|
||||
goto cleanup;
|
||||
|
|
|
|||
|
|
@ -465,6 +465,7 @@ tostruct_tkey(ARGS_TOSTRUCT) {
|
|||
/*
|
||||
* Key.
|
||||
*/
|
||||
INSIST(tkey->keylen + 2U <= sr.length);
|
||||
tkey->key = mem_maybedup(mctx, sr.base, tkey->keylen);
|
||||
if (tkey->key == NULL)
|
||||
goto cleanup;
|
||||
|
|
@ -479,6 +480,7 @@ tostruct_tkey(ARGS_TOSTRUCT) {
|
|||
/*
|
||||
* Other.
|
||||
*/
|
||||
INSIST(tkey->otherlen <= sr.length);
|
||||
tkey->other = mem_maybedup(mctx, sr.base, tkey->otherlen);
|
||||
if (tkey->other == NULL)
|
||||
goto cleanup;
|
||||
|
|
|
|||
Loading…
Reference in a new issue