fix race in ISC_QUEUE_PUSH

This commit is contained in:
Mark Andrews
2012-07-17 15:15:56 +10:00
parent e4466d5d2a
commit a98a24b2c4
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
3349. [bug] Change #3345 was incomplete. [RT #30233]
3348. [security] prevent RRSIG data from being cached if a negative
record matching the covering type exists at a higher
trust level. Such data already can't be retrieved from
+2 -2
View File
@@ -106,10 +106,10 @@
LOCK(&(queue).taillock); \
headlocked = ISC_TRUE; \
} \
if ((queue).tail != NULL) \
(queue).tail->link.next = (elt); \
(elt)->link.prev = (queue).tail; \
(elt)->link.next = NULL; \
if ((queue).tail != NULL) \
(queue).tail->link.next = (elt); \
(queue).tail = (elt); \
UNLOCK(&(queue).taillock); \
if (headlocked) { \