copy just the ip address over to __ourip
authorJeremy McNamara <jj@nufone.net>
Sat, 2 Aug 2003 05:46:32 +0000 (05:46 +0000)
committerJeremy McNamara <jj@nufone.net>
Sat, 2 Aug 2003 05:46:32 +0000 (05:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1249 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index 596fc5c..691483e 100755 (executable)
@@ -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) {