Commit e3f14558 authored by Simon Kelley's avatar Simon Kelley

Don't free blockdata for negative DS cache entries.

parent bd9b3cf5
......@@ -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
......
......@@ -353,7 +353,7 @@ static void from_wire(char *name)
l[len] = '.';
}
if (l != name)
if ((char *)l != name)
*(l-1) = 0;
}
......
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