Skip to content

Commit

Permalink
fix uri->host too long
Browse files Browse the repository at this point in the history
  • Loading branch information
ireader committed Nov 25, 2023
1 parent 35dfea5 commit 4003c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsip/src/uac/sip-uac.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ int sip_uac_transaction_via(struct sip_uac_transaction_t* t, char *via, int nvia

uri = sip_message_get_next_hop(t->req);
if (!uri || cstrcpy(&uri->host, remote, sizeof(remote)) >= sizeof(remote) - 1)
return -1;
remote[0] = 0; // fix uri->host too long

// rfc3263 4-Client Usage (p5)
// once a SIP server has successfully been contacted (success is defined below),
Expand Down

0 comments on commit 4003c3f

Please sign in to comment.