mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-24 12:04:38 +00:00
Don't free blockdata for negative DS cache entries.
This commit is contained in:
1 parent
bd9b3cf55b
commit
e3f1455850
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -183,7 +183,7 @@ static void cache_blockdata_free(struct crec *crecp)
|
||||
else
|
||||
blockdata_free(crecp->addr.key.keydata);
|
||||
}
|
||||
else if (crecp->flags & F_DS)
|
||||
else if ((crecp->flags & F_DS) && !(crecp->flags & F_NEG))
|
||||
blockdata_free(crecp->addr.ds.keydata);
|
||||
}
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -353,7 +353,7 @@ static void from_wire(char *name)
|
||||
l[len] = '.';
|
||||
}
|
||||
|
||||
if (l != name)
|
||||
if ((char *)l != name)
|
||||
*(l-1) = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user