diff src/protocols/simple/simple.c @ 11483:0d18fa6c3b41

[gaim-migrate @ 13725] missing ==NULL check removed a NTLM debug message missing g_strdup committer: Tailor Script <tailor@pidgin.im>
author Thomas Butter <tbutter>
date Fri, 09 Sep 2005 19:46:13 +0000
parents 617e67e1c985
children d37a45a53106
line wrap: on
line diff
--- a/src/protocols/simple/simple.c	Fri Sep 09 19:36:31 2005 +0000
+++ b/src/protocols/simple/simple.c	Fri Sep 09 19:46:13 2005 +0000
@@ -280,8 +280,7 @@
 			return tmp;
 		}
 		ret = gaim_ntlm_gen_type1("gaim", sip->servername);
-/*		tmp = g_strdup_printf("NTLM qop=\"auth\" realm=\"%s\" targetname=\"%s\" response=\"%s\"\r\n", auth->realm, auth->target, ret); */
-		tmp = g_strdup_printf("NTLM qop=\"auth\" realm=\"%s\" targetname=\"%s\" response=\"010000003134303017f6dcfb4531f92f\"\r\n", auth->realm, auth->target);
+		tmp = g_strdup_printf("NTLM qop=\"auth\" realm=\"%s\" targetname=\"%s\" response=\"%s\"\r\n", auth->realm, auth->target, ret);
 		g_free(ret);
 		return tmp;
 	}
@@ -601,6 +600,8 @@
 		tmp = strchr(from, ';');
 		if(tmp) {
 			from = g_strndup(from,tmp-from);
+		} else {
+			from = g_strdup(from);
 		}
 	}
 	gaim_debug_info("simple", "got %s\n",from);