]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: mux-h2: fix typo breaking build when using DEBUG_LOCK
authorWilly Tarreau <w@1wt.eu>
Sat, 4 Jul 2020 05:16:18 +0000 (07:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 4 Jul 2020 05:16:18 +0000 (07:16 +0200)
A typo was accidently introduced in commit 48ce6a3 ("BUG/MEDIUM: muxes:
Make sure nobody stole the connection before using it."), a "&" was
placed in front of "OTHER_LOCK", which breaks DEBUG_LOCK. No backport
is needed.

src/mux_h2.c

index 08120e98667ab61717dfb501104ca8d04413ca6f..beaf1a10467f123eb960ae980d6d376b507edcaa 100644 (file)
@@ -3714,7 +3714,7 @@ static struct task *h2_timeout_task(struct task *t, void *context, unsigned shor
                 */
                if (!t->context) {
                        h2c = NULL;
-                       HA_SPIN_UNLOCK(&OTHER_LOCK, &idle_conns[tid].takeover_lock);
+                       HA_SPIN_UNLOCK(OTHER_LOCK, &idle_conns[tid].takeover_lock);
                        goto do_leave;
                }