66 lines
2.4 KiB
Text
66 lines
2.4 KiB
Text
$NetBSD: patch-af,v 1.1 2007/10/06 00:00:02 joerg Exp $
|
|
|
|
--- src/psp_nat.c.orig 2007-10-05 23:00:16.000000000 +0000
|
|
+++ src/psp_nat.c
|
|
@@ -472,7 +472,7 @@ firewall_modify_200ok_validate_condition
|
|
osip_generic_param_t *maddr;
|
|
osip_generic_param_t *received;
|
|
osip_generic_param_t *rport;
|
|
- via = osip_list_get (response->vias, 0);
|
|
+ via = osip_list_get (&response->vias, 0);
|
|
if (via == NULL)
|
|
return -1;
|
|
osip_via_param_get_byname (via, "maddr", &maddr);
|
|
@@ -586,7 +586,7 @@ firewall_fix_200ok_osip_to_forward (osip
|
|
return 1;
|
|
|
|
i = -1;
|
|
- for (pos_body = 0; !osip_list_eol (response->bodies, pos_body); pos_body++)
|
|
+ for (pos_body = 0; !osip_list_eol (&response->bodies, pos_body); pos_body++)
|
|
{
|
|
sdp = NULL;
|
|
i = osip_message_get_body (response, pos_body, &body);
|
|
@@ -665,14 +665,14 @@ firewall_fix_200ok_osip_to_forward (osip
|
|
sdp->c_connection->c_addr = osip_strdup (core->ext_ip);
|
|
}
|
|
|
|
- for (i = 0; !osip_list_eol (sdp->m_medias, i); i++)
|
|
+ for (i = 0; !osip_list_eol (&sdp->m_medias, i); i++)
|
|
{
|
|
- med = (sdp_media_t *) osip_list_get (sdp->m_medias, i);
|
|
+ med = (sdp_media_t *) osip_list_get (&sdp->m_medias, i);
|
|
if (med->m_media != NULL)
|
|
{
|
|
sdp_connection_t *conn;
|
|
char *fw_port;
|
|
- conn = (sdp_connection_t *) osip_list_get (sdp->m_medias, i);
|
|
+ conn = (sdp_connection_t *) osip_list_get (&sdp->m_medias, i);
|
|
fw_port = med->m_port;
|
|
if (conn != NULL && conn->c_addr!=NULL)
|
|
{
|
|
@@ -750,7 +750,7 @@ firewall_fix_request_osip_to_forward (os
|
|
return 1;
|
|
|
|
i = -1;
|
|
- for (pos_body = 0; !osip_list_eol (invite->bodies, pos_body); pos_body++)
|
|
+ for (pos_body = 0; !osip_list_eol (&invite->bodies, pos_body); pos_body++)
|
|
{
|
|
sdp = NULL;
|
|
i = osip_message_get_body (invite, pos_body, &body);
|
|
@@ -828,13 +828,13 @@ firewall_fix_request_osip_to_forward (os
|
|
sdp->c_connection->c_addr = osip_strdup (core->ext_ip);
|
|
}
|
|
|
|
- for (i = 0; !osip_list_eol (sdp->m_medias, i); i++)
|
|
+ for (i = 0; !osip_list_eol (&sdp->m_medias, i); i++)
|
|
{
|
|
- med = (sdp_media_t *) osip_list_get (sdp->m_medias, i);
|
|
+ med = (sdp_media_t *) osip_list_get (&sdp->m_medias, i);
|
|
if (med->m_media != NULL) {
|
|
sdp_connection_t *conn;
|
|
char *fw_port;
|
|
- conn = (sdp_connection_t *) osip_list_get (sdp->m_medias, i);
|
|
+ conn = (sdp_connection_t *) osip_list_get (&sdp->m_medias, i);
|
|
fw_port = med->m_port;
|
|
if (conn != NULL && conn->c_addr!=NULL)
|
|
{
|