Skip to content

Commit

Permalink
Fixed double release of read_lock in dr_match
Browse files Browse the repository at this point in the history
(cherry picked from commit 8786217)
  • Loading branch information
ar45 authored and liviuchircu committed Dec 9, 2020
1 parent dc8cfe8 commit 6f6aa0e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/drouting/drouting.c
Expand Up @@ -4103,7 +4103,6 @@ static int dr_match(struct sip_msg* msg, int *grp, long flags, str *number,
rule = find_rule_by_prefix_unsafe(part->rdata->pt,
&part->rdata->noprefix, *number, *grp, &matched_len);
if (rule == NULL){
lock_stop_read( part->ref_lock );
goto failure;
}

Expand Down

0 comments on commit 6f6aa0e

Please sign in to comment.