Make sure sin_family is filled in
authorMark Spencer <markster@digium.com>
Wed, 17 Nov 2004 19:11:33 +0000 (19:11 +0000)
committerMark Spencer <markster@digium.com>
Wed, 17 Nov 2004 19:11:33 +0000 (19:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4282 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index b428bcc..72851dd 100755 (executable)
@@ -3820,6 +3820,8 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
                }
                return NULL;
        }
+       gw->defaddr.sin_family = AF_INET;
+       gw->addr.sin_family = AF_INET;
        if (gw->defaddr.sin_addr.s_addr && !ntohs(gw->defaddr.sin_port)) 
                gw->defaddr.sin_port = htons(DEFAULT_MGCP_GW_PORT);
        if (gw->addr.sin_addr.s_addr && !ntohs(gw->addr.sin_port))