From 8162607c5813d95b07d0efda40d1c70d3dd31fe7 Mon Sep 17 00:00:00 2001 From: Mark Spencer <markster@digium.com> Date: Sat, 3 May 2003 03:30:55 +0000 Subject: [PATCH] Fix typo git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@953 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 10f2075cf4..e47a4ffc29 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4743,7 +4743,7 @@ static int sip_poke_peer(struct sip_peer *peer) if (strlen(p->tohost)) strncpy(p->tohost, peer->tohost, sizeof(p->tohost) - 1); else - snprintf(p->tohost, sizeof(p->tohost), "%s", inet_ntoa(p->addr.sin_addr)); + snprintf(p->tohost, sizeof(p->tohost), "%s", inet_ntoa(peer->addr.sin_addr)); /* Recalculate our side, and recalculate Call ID */ memcpy(&p->ourip, myaddrfor(&p->sa.sin_addr), sizeof(p->ourip)); -- GitLab