diff src/protocols/simple/simple.c @ 13272:0bfc9b72b9ce

[gaim-migrate @ 15638] fix for double Proxy-Authorization Header by Anibal Avelar committer: Tailor Script <tailor@pidgin.im>
author Thomas Butter <tbutter>
date Mon, 13 Feb 2006 07:34:59 +0000
parents 33bef17125c2
children 263c2db78f77
line wrap: on
line diff
--- a/src/protocols/simple/simple.c	Mon Feb 13 05:32:42 2006 +0000
+++ b/src/protocols/simple/simple.c	Mon Feb 13 07:34:59 2006 +0000
@@ -1182,7 +1182,7 @@
 
 				fill_auth(sip, ptmp, &sip->proxy);
 				auth = auth_header(sip, &sip->proxy, trans->msg->method, trans->msg->target);
-				sipmsg_remove_header(msg, "Proxy-Authorization");
+				sipmsg_remove_header(trans->msg, "Proxy-Authorization");
 				sipmsg_add_header(trans->msg, "Proxy-Authorization", auth);
 				g_free(auth);
 				resend = sipmsg_to_string(trans->msg);