Skip to content

Commit

Permalink
sipcapture: Fix missing lock release on "buffer too small" errors
Browse files Browse the repository at this point in the history
Many thanks to Ryan Caicse (@ryancaicse) for reporting this bug!

(cherry picked from commit 9f0fe53)
  • Loading branch information
liviuchircu committed Nov 18, 2022
1 parent 1074089 commit 0bd0c1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/sipcapture/sipcapture.c
Original file line number Diff line number Diff line change
Expand Up @@ -2938,7 +2938,10 @@ db_async_store(db_val_t* vals, db_key_t* keys, int num_keys,
async_status = ASYNC_NO_IO;

return 1;

no_buffer:
if (HAVE_SHARED_QUERIES)
RELEASE_QUERY_LOCK(crt_as_query);
LM_ERR("buffer size exceeded\n");
return -1;
}
Expand Down

0 comments on commit 0bd0c1e

Please sign in to comment.