pidgin/pidgin

[gaim-migrate @ 16058]

2006-04-18, Thomas Butter
286841e264c6
Parents 32db312f1b9c
Children 61156df64c9d
[gaim-migrate @ 16058]
fixed CID 106
--- 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) {