Commit 8c55a67a authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

null pointer dereference

parent 260b4137
......@@ -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--;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment