Skip to content

Commit

Permalink
core: more detailed debug message if new uri is too long
Browse files Browse the repository at this point in the history
(cherry picked from commit ada6809)
  • Loading branch information
miconda committed Aug 17, 2018
1 parent 154fd39 commit 030f3b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,8 @@ int uri_add_rcv_alias(sip_msg_t *msg, str *uri, str *nuri)
/*uri;alias=[ip]~port~proto*/
len = uri->len+ip.len+port.len+12;
if(len>=nuri->len) {
LM_ERR("not enough space for new uri: %d\n", len);
LM_ERR("not enough space - new uri len: %d (buf size: %d)\n",
len, nuri->len);
return -1;
}
p = nuri->s;
Expand Down

0 comments on commit 030f3b1

Please sign in to comment.