mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
fix a race condition.
This commit is contained in:
parent
0bca614506
commit
86c3cd20dd
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: lookup.c,v 1.6 2000/12/20 03:38:42 bwelling Exp $ */
|
/* $Id: lookup.c,v 1.7 2000/12/20 20:42:08 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -311,12 +311,12 @@ lookup_find(dns_lookup_t *lookup, dns_fetchevent_t *event) {
|
|||||||
send_event = ISC_TRUE;
|
send_event = ISC_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
|
||||||
if (dns_rdataset_isassociated(&lookup->rdataset))
|
if (dns_rdataset_isassociated(&lookup->rdataset))
|
||||||
dns_rdataset_disassociate(&lookup->rdataset);
|
dns_rdataset_disassociate(&lookup->rdataset);
|
||||||
if (dns_rdataset_isassociated(&lookup->sigrdataset))
|
if (dns_rdataset_isassociated(&lookup->sigrdataset))
|
||||||
dns_rdataset_disassociate(&lookup->sigrdataset);
|
dns_rdataset_disassociate(&lookup->sigrdataset);
|
||||||
|
|
||||||
|
done:
|
||||||
if (event != NULL) {
|
if (event != NULL) {
|
||||||
if (event->node != NULL)
|
if (event->node != NULL)
|
||||||
dns_db_detachnode(event->db, &event->node);
|
dns_db_detachnode(event->db, &event->node);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user