[Opendnssec-develop] Ticket #197: ods-ksmutil key available

Jerry Lundström jerry at opendnssec.org
Thu Sep 22 09:04:32 UTC 2011


Hi all,

Is this still something we want to implement:

Replying to [ticket:197 Sebastian Castro <sebastian@Š>]:
> While working on a PoC code to display the list of keys available (in GENERATE
state) for a zone, I found a double-free issue.
> 
> The case was produced when a query to the KASP returned no rows. In the
attached code, within the ListAvailableKeys function, if no rows are returned
there is no call to DbString(row, 0, &key_id), meaning no mem allocation for
key_id. Later on, you try to free that memory using DbStringFree. The glibc on
Debian complains about this. I'm not completely sure about the right approach
for fixing this.

/Jerry


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendnssec.org/pipermail/opendnssec-develop/attachments/20110922/0f8adabe/attachment.htm>


More information about the Opendnssec-develop mailing list