Skip to content

Commit

Permalink
script routes: Fix rare edge-case leading to crash
Browse files Browse the repository at this point in the history
(cherry picked from commit 1b57607)
  • Loading branch information
liviuchircu committed Dec 19, 2024
1 parent 6d63a8c commit c0b2ea5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions route.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ struct script_route_ref *dup_ref_script_route_in_shm(
sizeof(struct script_route_ref) + ref->name.len + 1);
if (s_ref==NULL) {
LM_ERR("failed to dup script route in shm\n");
return NULL;
} else {
memcpy( s_ref, ref,
sizeof(struct script_route_ref) + ref->name.len + 1 );
Expand Down

0 comments on commit c0b2ea5

Please sign in to comment.