Skip to content

Commit b58fd69

Browse files
authored
Update rtpengine.c
RTPE_START_READ() obtains a lock, however, in one particular error case, the RTPE_STOP_READ() unlock is not called.
1 parent 4cc7a81 commit b58fd69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/rtpengine/rtpengine.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,6 +2893,7 @@ static bencode_item_t *rtpe_function_call(bencode_buffer_t *bencbuf, struct sip_
28932893
* so we should ignore it and try another one */
28942894
if (!rtpe_add_ignore_node(&ignore_list, node)) {
28952895
LM_ERR("could not add node to ignore list!\n");
2896+
RTPE_STOP_READ();
28962897
goto error;
28972898
}
28982899
failed_node = NULL;

0 commit comments

Comments
 (0)