mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-14 10:29:33 +00:00
Fix use-after-free
This commit is contained in:
1 parent
04a0612e8a
commit
4ead40cf67
1 file changed
+2
-2
+2
-2
@@ -620,10 +620,10 @@ void dhcp_construct_contexts(time_t now)
|
||||
if (context->flags & CONTEXT_GC)
|
||||
{
|
||||
*up = context->next;
|
||||
free(context);
|
||||
param.newone = 1; /* include deletion */
|
||||
if (context->flags & CONTEXT_RA_NAME)
|
||||
param.newname = 1;
|
||||
param.newname = 1;
|
||||
free(context);
|
||||
}
|
||||
else
|
||||
up = &context->next;
|
||||
|
||||
Reference in new issue
Block a user