changeset 19813:6bc69cd68d3c

[gaim-migrate @ 16955] fix the authentication string fs 's bug comitted by Ma Yuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Mon, 21 Aug 2006 17:40:07 +0000
parents d928bccffe4c
children 78fea5515221
files src/protocols/msn/nexus.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/nexus.c	Mon Aug 21 16:16:10 2006 +0000
+++ b/src/protocols/msn/nexus.c	Mon Aug 21 17:40:07 2006 +0000
@@ -208,13 +208,15 @@
 	}
 
 	if(!fs){
-		fs =g_strdup_printf("1");
+		fs =g_strdup("1");
 	}
 	challenge_str = g_strdup_printf(
 		"lc=%s&amp;id=%s&amp;tw=%s&amp;fs=%s&amp;ru=%s&amp;ct=%s&amp;kpp=%s&amp;kv=%s&amp;ver=%s&amp;rn=%s&amp;tpf=%s\r\n",
 		lc,id,tw,fs,ru,ct,kpp,kv,ver,rn,tpf
 		);
-	g_free(fs);
+	if(!fs){
+		g_free(fs);
+	}
 
 	/*build the SOAP windows Live ID XML body */
 	tail = g_strdup_printf(TWN_ENVELOP_TEMPLATE,username,password,challenge_str	);