From: Ondřej Kuzník Date: Wed, 18 Jan 2023 13:05:47 +0000 (+0000) Subject: ITS#9983 Also fix c_refcnt sequencing X-Git-Tag: OPENLDAP_REL_ENG_2_5_14~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5d46b77c644e32724f1ae354e5289a873bb089b;p=thirdparty%2Fopenldap.git ITS#9983 Also fix c_refcnt sequencing --- diff --git a/servers/lloadd/lload.h b/servers/lloadd/lload.h index 40ddadf37f..ef7b7578de 100644 --- a/servers/lloadd/lload.h +++ b/servers/lloadd/lload.h @@ -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) \