aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-02 05:46:32 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-02 05:46:32 +0000
commita92605475c2be27645caad73894df82c12cbca04 (patch)
treeaf8070b1446b3079371cbee1a6e384717c40e1dc
parentf300bb74a459860d44ac78f2d78d8f5997d081c9 (diff)
copy just the ip address over to __ourip
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1249 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_mgcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 596fc5c87..691483ea8 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) {