# HG changeset patch # User Ma Yuan # Date 1156176970 0 # Node ID d928bccffe4ccbed8daca52c591dd7242dac1297 # Parent 4c7aa3b07f423dbcd25443d1c8d9ef3c31770afc [gaim-migrate @ 16952] update for fail-safe check of Passport 3.0's Authentication committer: Ethan Blanton diff -r 4c7aa3b07f42 -r d928bccffe4c src/protocols/msn/nexus.c --- a/src/protocols/msn/nexus.c Sat Aug 19 16:48:46 2006 +0000 +++ b/src/protocols/msn/nexus.c Mon Aug 21 16:16:10 2006 +0000 @@ -163,7 +163,7 @@ MsnSoapConn *soapconn; MsnNexus * nexus; MsnSession *session; - char *ru,*lc,*id,*tw,*ct,*kpp,*kv,*ver,*rn,*tpf; + char *ru,*lc,*id,*tw,*ct,*kpp,*kv,*ver,*rn,*tpf,*fs; char *username, *password; char *request_str, *head, *tail,*challenge_str; @@ -187,6 +187,7 @@ lc = (char *)g_hash_table_lookup(nexus->challenge_data, "lc"); id = (char *)g_hash_table_lookup(nexus->challenge_data, "id"); tw = (char *)g_hash_table_lookup(nexus->challenge_data, "tw"); + fs = (char *)g_hash_table_lookup(nexus->challenge_data, "fs"); ru = (char *)g_hash_table_lookup(nexus->challenge_data, "ru"); ct = (char *)g_hash_table_lookup(nexus->challenge_data, "ct"); kpp= (char *)g_hash_table_lookup(nexus->challenge_data, "kpp"); @@ -206,10 +207,14 @@ return; } + if(!fs){ + fs =g_strdup_printf("1"); + } challenge_str = g_strdup_printf( - "lc=%s&id=%s&tw=%s&fs=1&ru=%s&ct=%s&kpp=%s&kv=%s&ver=%s&rn=%s&tpf=%s\r\n", - lc,id,tw,ru,ct,kpp,kv,ver,rn,tpf + "lc=%s&id=%s&tw=%s&fs=%s&ru=%s&ct=%s&kpp=%s&kv=%s&ver=%s&rn=%s&tpf=%s\r\n", + lc,id,tw,fs,ru,ct,kpp,kv,ver,rn,tpf ); + g_free(fs); /*build the SOAP windows Live ID XML body */ tail = g_strdup_printf(TWN_ENVELOP_TEMPLATE,username,password,challenge_str ); diff -r 4c7aa3b07f42 -r d928bccffe4c src/protocols/msn/userlist.c --- a/src/protocols/msn/userlist.c Sat Aug 19 16:48:46 2006 +0000 +++ b/src/protocols/msn/userlist.c Mon Aug 21 16:16:10 2006 +0000 @@ -90,16 +90,13 @@ pa->friendly = g_strdup(friendly); pa->gc = gc; - if (friendly != NULL) - { + if (friendly != NULL){ msg = g_strdup_printf( _("The user %s (%s) wants to add %s to his or her " "buddy list."), passport, friendly, gaim_account_get_username(gc->account)); - } - else - { + }else{ msg = g_strdup_printf( _("The user %s wants to add %s to his or " "her buddy list."),