Skip to content

Commit

Permalink
core: use third array element when generating totag suffix
Browse files Browse the repository at this point in the history
(cherry picked from commit 895208e)
  • Loading branch information
charlesrchance authored and henningw committed Mar 30, 2021
1 parent 5752983 commit 518da78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/tags.h
Expand Up @@ -51,17 +51,18 @@ static inline void calc_crc_suffix( struct sip_msg *msg, char *tag_suffix)
suffix_source[0]=msg->via1->host;
suffix_source[1]=msg->via1->port_str;
if (msg->via1->branch) {
suffix_source[2]=msg->via1->branch->value;
suffix_source[ss_nr++]=msg->via1->branch->value;
} else {
suffix_source[2].s = NULL;
suffix_source[2].len = 0;
}
crcitt_string_array( tag_suffix, suffix_source, ss_nr );

ss_nr=2;
suffix_source[0]=msg->via1->port_str;
suffix_source[1]=msg->via1->host;
if (msg->callid) {
suffix_source[2]=msg->callid->body;
suffix_source[ss_nr++]=msg->callid->body;
} else {
suffix_source[2].s = NULL;
suffix_source[2].len = 0;
Expand Down

0 comments on commit 518da78

Please sign in to comment.