Tue, 18 Apr 2006 07:45:55 +0000
[gaim-migrate @ 16058]
fixed CID 106
| src/protocols/simple/simple.c | file | annotate | diff | comparison | revisions |
--- 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) {