Skip to content

Commit

Permalink
tm: small change related to commit 38bcfb7, prevent short from tag in…
Browse files Browse the repository at this point in the history
… else case
  • Loading branch information
henningw committed Sep 16, 2019
1 parent 88d06a0 commit b9bd13a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/tm/uac.c
Expand Up @@ -112,6 +112,9 @@ void generate_fromtag(str* tag, str* callid, str* ruri)
crcitt_string_array(&from_tag[MD5_LEN + 1], callid, 1);
if(ruri) {
crcitt_string_array(&from_tag[MD5_LEN + 5], ruri, 1);
} else {
/* prevent shorter tag in this case, to be changed */
crcitt_string_array(&from_tag[MD5_LEN + 5], callid, 1);
}
tag->s = from_tag;
tag->len = FROM_TAG_LEN;
Expand Down

0 comments on commit b9bd13a

Please sign in to comment.