]> 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:49:21 +0000 (17:49 +0000)
servers/lloadd/lload.h

index 40ddadf37f6191f1c5938c8d533aa634dc84a3cc..ef7b7578de61fef78c503174667c5e81e24227e0 100644 (file)
@@ -337,8 +337,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) \