src/protocols/msn/slpcall.c

changeset 10000
703dc5594c97
parent 9259
03ac0392aa0b
child 10225
0dfea1bc8695
--- 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

mercurial