changeset 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 aaeb6ea63c56
children 449e9ef09861
files COPYRIGHT src/protocols/simple/simple.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Mon Feb 13 05:32:42 2006 +0000
+++ b/COPYRIGHT	Mon Feb 13 07:34:59 2006 +0000
@@ -10,6 +10,7 @@
 Daniel Atallah
 Paul Aurich
 Patrick Aussems
+Anibal Avelar
 Alex Badea
 John Bailey
 Luca Barbato
--- 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);