# HG changeset patch # User Thomas Butter # Date 1145346355 0 # Node ID d0fc90e56b5ecf93b785887be731349b4b0fa69f # Parent bbab6b31119584017a68a76bcc06d696edba48a3 [gaim-migrate @ 16058] fixed CID 106 committer: Tailor Script diff -r bbab6b311195 -r d0fc90e56b5e src/protocols/simple/simple.c --- 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) {