[gaim-migrate @ 16058]

Tue, 18 Apr 2006 07:45:55 +0000

author
Thomas Butter <tbutter@users.sourceforge.net>
date
Tue, 18 Apr 2006 07:45:55 +0000
changeset 13657
286841e264c6
parent 13656
32db312f1b9c
child 13658
61156df64c9d

[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) {

mercurial