Skip to content

Commit a8509ea

Browse files
committed
clusterer: Fix missing lock_release() on capability error cases
Credits to @ryancaicse for the report in #2714
1 parent ad28bcb commit a8509ea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/clusterer/clusterer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,8 +1283,10 @@ static void bin_rcv_mod_packets(bin_packet_t *packet, int packet_type,
12831283

12841284
rc = get_capability_status(cl, &cap->name);
12851285
if (rc == -1) {
1286+
lock_release(node->lock);
12861287
goto exit;
12871288
} else if (rc == 0) {
1289+
lock_release(node->lock);
12881290
LM_DBG("capability disabled, ignoring received bin packet\n");
12891291
goto exit;
12901292
}

0 commit comments

Comments
 (0)