]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9983 Also fix c_refcnt sequencing
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 18 Jan 2023 13:05:47 +0000 (13:05 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 19 Jan 2023 17:48:02 +0000 (17:48 +0000)
servers/lloadd/lload.h

index f7d3bba488095ff72fa0d40b734e440a3f3c9a2a..f9144a53513851bbd8b374a260d212438491b44e 100644 (file)
@@ -422,8 +422,8 @@ struct LloadConnection {
 #define CONNECTION_UNLINK_(c) \
     do { \
         if ( __atomic_exchange_n( &(c)->c_live, 0, __ATOMIC_ACQ_REL ) ) { \
-            RELEASE_REF( (c), c_refcnt, c->c_destroy ); \
             (c)->c_unlink( (c) ); \
+            RELEASE_REF( (c), c_refcnt, c->c_destroy ); \
         } \
     } while (0)
 #define CONNECTION_DESTROY(c) \