Skip to content

Commit

Permalink
sip_i: fix setting of Subsequent number parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Dec 17, 2020
1 parent 454f7db commit 82c4f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/sip_i/isup.c
Expand Up @@ -1106,9 +1106,9 @@ int subsequent_num_writef(int param_idx, int subfield_idx, unsigned char *param_
}

if (subfield_idx == 1)
*len = num_len + 2;
*len = num_len + 1;
else if (*len == 0)
*len = 2;
*len = 1;

return 0;
}
Expand Down

0 comments on commit 82c4f94

Please sign in to comment.