summaryrefslogtreecommitdiff
path: root/net/partysip/patches/patch-al
blob: 5b47bcc036d51b5fcc7bd51f1d1ad40af9b37223 (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
$NetBSD: patch-al,v 1.1 2007/10/06 00:00:03 joerg Exp $

--- plugin/auth/auth.c.orig	2007-10-05 23:05:58.000000000 +0000
+++ plugin/auth/auth.c
@@ -244,7 +244,7 @@ cb_auth_validate_credentials (psp_reques
 
 		  psp_request_set_state (psp_req, PSP_CONTINUE);
 		  /* remove the proxy_authorization header! */
-		  osip_list_remove (request->proxy_authorizations, pos);
+		  osip_list_remove (&request->proxy_authorizations, pos);
 		  osip_proxy_authorization_free (p_auth);
 
 		  OSIP_TRACE (osip_trace
@@ -301,7 +301,7 @@ cb_auth_validate_credentials (psp_reques
 		}
 
 	      /* remove the authorization header! */
-	      osip_list_remove (request->authorizations, pos);
+	      osip_list_remove (&request->authorizations, pos);
 	      osip_authorization_free (h_auth);
 
 	      OSIP_TRACE (osip_trace (__FILE__, __LINE__, OSIP_INFO4, NULL,
@@ -433,7 +433,7 @@ cb_auth_add_credentials (psp_request_t *
 	    }
 	}
 
-	osip_list_add (response->proxy_authenticates, p_auth, -1);
+	osip_list_add (&response->proxy_authenticates, p_auth, -1);
 
 	psp_request_set_state (psp_req, PSP_CONTINUE);
 	return 0;
@@ -449,7 +449,7 @@ cb_auth_add_credentials (psp_request_t *
 	osip_www_authenticate_set_opaque (w_auth, opaque);
 	osip_www_authenticate_set_realm (w_auth, realm);
 
-	osip_list_add (response->www_authenticates, w_auth, -1);
+	osip_list_add (&response->www_authenticates, w_auth, -1);
 
 	psp_request_set_state (psp_req, PSP_CONTINUE);
 	return 0;