id summary reporter owner description type status priority milestone component version resolution keywords cc backport_to_milestone backported 1710 Bug in resolver when updating cache entry nanang bennylp "Usually updating an entry will be started by removing the entry from the cache hash table before transmitting a query to nameserver, so when there is incoming response from name server, it is an ADD operation to the hash table. However, there are rare cases that it is an UPDATE operation to the cache hash table, e.g: manual entry update via pj_dns_resolver_add_entry(). Unfortunately, for an UPDATE operation, there seems to be a bug: releasing/resetting entry pool must be done after removing the entry from hash table as the entry key is allocated using the entry pool. Note that, another case that may trigger UPDATE operation to the cache hash table is: two queries for the same name/key in a short interval, i.e: when the second query comes while the first query response has been received and resolver is invoking callback to app, it will transmit another request to nameserver as a cache entry hasn't been updated/added and pending query flag has been cleared, and when this second query response is received, it will UPDATE the existing cache entry." defect closed normal release-2.2 pjlib-util trunk fixed 0