Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
11482:3ced52f7ace2 | 11483:0d18fa6c3b41 |
---|---|
278 tmp = g_strdup_printf("NTLM qop=\"auth\" realm=\"%s\" targetname=\"%s\" response=\"%s\"\r\n",auth->realm, auth->target, ret); | 278 tmp = g_strdup_printf("NTLM qop=\"auth\" realm=\"%s\" targetname=\"%s\" response=\"%s\"\r\n",auth->realm, auth->target, ret); |
279 g_free(ret); | 279 g_free(ret); |
280 return tmp; | 280 return tmp; |
281 } | 281 } |
282 ret = gaim_ntlm_gen_type1("gaim", sip->servername); | 282 ret = gaim_ntlm_gen_type1("gaim", sip->servername); |
283 /* tmp = g_strdup_printf("NTLM qop=\"auth\" realm=\"%s\" targetname=\"%s\" response=\"%s\"\r\n", auth->realm, auth->target, ret); */ | 283 tmp = g_strdup_printf("NTLM qop=\"auth\" realm=\"%s\" targetname=\"%s\" response=\"%s\"\r\n", auth->realm, auth->target, ret); |
284 tmp = g_strdup_printf("NTLM qop=\"auth\" realm=\"%s\" targetname=\"%s\" response=\"010000003134303017f6dcfb4531f92f\"\r\n", auth->realm, auth->target); | |
285 g_free(ret); | 284 g_free(ret); |
286 return tmp; | 285 return tmp; |
287 } | 286 } |
288 | 287 |
289 sprintf(noncecount, "%08d", auth->nc++); | 288 sprintf(noncecount, "%08d", auth->nc++); |
599 } | 598 } |
600 } else { | 599 } else { |
601 tmp = strchr(from, ';'); | 600 tmp = strchr(from, ';'); |
602 if(tmp) { | 601 if(tmp) { |
603 from = g_strndup(from,tmp-from); | 602 from = g_strndup(from,tmp-from); |
603 } else { | |
604 from = g_strdup(from); | |
604 } | 605 } |
605 } | 606 } |
606 gaim_debug_info("simple", "got %s\n",from); | 607 gaim_debug_info("simple", "got %s\n",from); |
607 return from; | 608 return from; |
608 } | 609 } |