Mercurial > pidgin
changeset 7197:1f4e74bfe5bc
[gaim-migrate @ 7766]
MSN should crash less often on Solaris
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 08 Oct 2003 23:13:08 +0000 |
parents | 8012b841687f |
children | 78f3252e9d10 |
files | src/protocols/msn/notification.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/notification.c Wed Oct 08 21:58:40 2003 +0000 +++ b/src/protocols/msn/notification.c Wed Oct 08 23:13:08 2003 +0000 @@ -322,6 +322,7 @@ char *username, *password; char *request_str; char *buffer = NULL; + char *tpf; size_t s; username = @@ -329,6 +330,8 @@ password = g_strdup(gaim_url_encode(gaim_account_get_password(session->account))); + tpf = (char *)g_hash_table_lookup(session->ssl_challenge_data, "tpf"); + request_str = g_strdup_printf( "GET %s HTTP/1.1\r\n" "Authorization: Passport1.4 OrgVerb=GET,OrgURL=%s,sign-in=%s,pwd=%s," @@ -349,7 +352,7 @@ (char *)g_hash_table_lookup(session->ssl_challenge_data, "kpp"), (char *)g_hash_table_lookup(session->ssl_challenge_data, "kv"), (char *)g_hash_table_lookup(session->ssl_challenge_data, "ver"), - (char *)g_hash_table_lookup(session->ssl_challenge_data, "tpf"), + (tpf == NULL ? "" : tpf), session->ssl_login_host); gaim_debug(GAIM_DEBUG_MISC, "msn", "Sending: {%s}\n", request_str);