From: Jeremy McNamara Date: Sat, 2 Aug 2003 05:46:32 +0000 (+0000) Subject: copy just the ip address over to __ourip X-Git-Tag: 0.5.0~247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0484eac549456b175c8d4e2b93649dfc5625768e;p=thirdparty%2Fasterisk.git copy just the ip address over to __ourip git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1249 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 596fc5c873..691483ea8d 100755 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -2942,7 +2942,7 @@ int load_module() } if (ntohl(bindaddr.sin_addr.s_addr)) { - memcpy(&__ourip, &bindaddr, sizeof(__ourip)); + memcpy(&__ourip, &bindaddr.sin_addr, sizeof(__ourip)); } else { hp = gethostbyname(ourhost); if (!hp) {