mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +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;
|
||||
|
||||
if (block->remaining == 0)
|
||||
if (block == NULL || block->remaining == 0)
|
||||
return (NULL);
|
||||
|
||||
block->remaining--;
|
||||
|
Reference in New Issue
Block a user