$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;
