copy just the ip address over to __ourip
[asterisk/asterisk.git] / 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) {