mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 08:35:31 +00:00
null pointer dereference
This commit is contained in:
@@ -118,7 +118,7 @@ msgblock_internalget(dns_msgblock_t *block, unsigned int sizeof_type)
|
|||||||
{
|
{
|
||||||
void *ptr;
|
void *ptr;
|
||||||
|
|
||||||
if (block->remaining == 0)
|
if (block == NULL || block->remaining == 0)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
block->remaining--;
|
block->remaining--;
|
||||||
|
Reference in New Issue
Block a user