MT#55283 fix hash table update

Change-Id: I6b156e4ad16fef88382eab0e3ee95baeca2f8eae
(cherry picked from commit 272b3c3bc5)
mr26.2
Richard Fuchs 1 week ago
parent a8406302ce
commit d83ba127d8

@ -2837,6 +2837,7 @@ static void __call_monologue_init_from_flags(struct call_monologue *ml, struct c
__tos_change(call, flags);
if (flags->label.s) {
t_hash_table_remove(call->labels, &ml->label);
ml->label = call_str_cpy(&flags->label);
t_hash_table_replace(call->labels, &ml->label, ml);
}

@ -1403,6 +1403,7 @@ static const char *media_block_match(call_t **call, struct call_monologue **mono
// for generic ops, handle set-label here if given
if (IS_OP_OTHER(flags->opmode) && flags->set_label.len && *monologue) {
t_hash_table_remove((*call)->labels, &(*monologue)->label);
(*monologue)->label = call_str_cpy(&flags->set_label);
t_hash_table_replace((*call)->labels, &(*monologue)->label, *monologue);
}

Loading…
Cancel
Save