mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 05:49:59 -04:00
null pointer dereference
This commit is contained in:
parent
260b413740
commit
8c55a67a6d
1 changed files with 1 additions and 1 deletions
|
|
@ -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--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue