diff options
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2af7632c5..36433f3b4 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3459,7 +3459,7 @@ static void set_destination(struct sip_pvt *p, char *uri) maddr += 6; hn = strspn(maddr, "0123456789.") + 1; if (hn > sizeof(hostname)) hn = sizeof(hostname); - ast_copy_string(hostname, h, hn); + ast_copy_string(hostname, maddr, hn); } hp = ast_gethostbyname(hostname, &ahp); |