mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 22:39:58 -04:00
check target pointer validity in qctx_save
Make sure the target pointer address (getting the allocated instance of qctx) is valid and the pointer is NULL.
This commit is contained in:
parent
f1568c1729
commit
0194a265fe
1 changed files with 2 additions and 0 deletions
|
|
@ -5229,6 +5229,8 @@ qctx_destroy(query_ctx_t *qctx) {
|
|||
*/
|
||||
static void
|
||||
qctx_save(query_ctx_t *src, query_ctx_t **targetp) {
|
||||
REQUIRE(targetp != NULL && *targetp == NULL);
|
||||
|
||||
query_ctx_t *target = isc_mem_get(src->client->manager->mctx,
|
||||
sizeof(query_ctx_t));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue