Mercurial > pidgin
changeset 13656:d0fc90e56b5e
[gaim-migrate @ 16058]
fixed CID 106
committer: Tailor Script <tailor@pidgin.im>
author | Thomas Butter <tbutter> |
---|---|
date | Tue, 18 Apr 2006 07:45:55 +0000 |
parents | bbab6b311195 |
children | f9b24d282c91 |
files | src/protocols/simple/simple.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/simple/simple.c Tue Apr 18 07:35:05 2006 +0000 +++ b/src/protocols/simple/simple.c Tue Apr 18 07:45:55 2006 +0000 @@ -379,11 +379,12 @@ g_strfreev(parts); gaim_debug(GAIM_DEBUG_MISC, "simple", "nonce: %s realm: %s ", auth->nonce ? auth->nonce : "(null)", auth->realm ? auth->realm : "(null)"); + if(auth->realm) { + auth->digest_session_key = gaim_cipher_http_digest_calculate_session_key( + "md5", authuser, auth->realm, sip->password, auth->nonce, NULL); - auth->digest_session_key = gaim_cipher_http_digest_calculate_session_key( - "md5", authuser, auth->realm, sip->password, auth->nonce, NULL); - - auth->nc = 1; + auth->nc = 1; + } } static void simple_canwrite_cb(gpointer data, gint source, GaimInputCondition cond) {