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_6_4~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebe9a03d0b5ebd6785ce37dd9df8070d0e3a84ea;p=thirdparty%2Fopenldap.git ITS#9983 Also fix c_refcnt sequencing --- diff --git a/servers/lloadd/lload.h b/servers/lloadd/lload.h index f7d3bba488..f9144a5351 100644 --- a/servers/lloadd/lload.h +++ b/servers/lloadd/lload.h @@ -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) \