summaryrefslogtreecommitdiff
path: root/net/partysip/patches/patch-af
blob: abaef9fd3b7d30dd9b39984c5b07539306c7eb19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$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)
 	    {