changeset 10000:3a701f15e45d

[gaim-migrate @ 10914] A patch from datallah named fix_msn_crash_on_send_cancel.patch Someone should look at this and make sure it's sane. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 09 Sep 2004 22:10:00 +0000
parents 5d9c991549cd
children 4d2269c6c673
files src/protocols/msn/slpcall.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/slpcall.c	Thu Sep 09 22:06:06 2004 +0000
+++ b/src/protocols/msn/slpcall.c	Thu Sep 09 22:10:00 2004 +0000
@@ -136,14 +136,13 @@
 	MsnSlpMessage *slpmsg;
 	char *header;
 	char *content;
-	char *branch;
 
 	g_return_if_fail(slpcall != NULL);
 	g_return_if_fail(context != NULL);
 
 	slplink = slpcall->slplink;
 
-	branch = rand_guid();
+	slpcall->branch = rand_guid();
 
 	content = g_strdup_printf(
 		"EUF-GUID: {%s}\r\n"
@@ -158,7 +157,7 @@
 	header = g_strdup_printf("INVITE MSNMSGR:%s MSNSLP/1.0",
 							 slplink->remote_user);
 
-	slpmsg = msn_slpmsg_sip_new(slpcall, 0, header, branch,
+	slpmsg = msn_slpmsg_sip_new(slpcall, 0, header, slpcall->branch,
 								"application/x-msnmsgr-sessionreqbody", content);
 #ifdef DEBUG_SLP
 	slpmsg->info = "SLP INVITE";
@@ -169,8 +168,6 @@
 
 	g_free(header);
 	g_free(content);
-
-	g_free(branch);
 }
 
 void