# HG changeset patch # User Christian Hammond # Date 1063853672 0 # Node ID ac638b90da440f7483b41f459c3c3e64a37b006e # Parent 4f8258b2bb8de102596cea14d471bc843e0992df [gaim-migrate @ 7429] Eh, whatever. New MSNSLP snapshot. committer: Tailor Script diff -r 4f8258b2bb8d -r ac638b90da44 src/protocols/msn/msnslp.c --- a/src/protocols/msn/msnslp.c Thu Sep 18 02:53:11 2003 +0000 +++ b/src/protocols/msn/msnslp.c Thu Sep 18 02:54:32 2003 +0000 @@ -42,6 +42,15 @@ { g_return_if_fail(session != NULL); + if (session->orig_body != NULL) + g_free(session->orig_body); + + if (session->outgoing_msg != NULL) + msn_message_unref(session->outgoing_msg); + + if (session->call_id != NULL) + g_free(session->call_id); + g_free(session); } @@ -135,7 +144,7 @@ msg->msnslp_header.id = slpsession->prev_msg_id; // msg->msnslp_header.ack_session_id = rand() % 0xFFFFFF00; - msg->msnslp_header.ack_session_id = 1980589; + msg->msnslp_header.ack_session_id = 0x1407C7DE; msn_message_set_charset(msg, NULL); @@ -203,7 +212,6 @@ char *msnobj_data; char *msnobj_base64; char *branch; - char *call_id; char *content; char *body; @@ -233,19 +241,19 @@ rand() % 0xAAFF + 0x1111, rand() % 0xAAFF + 0x1111); - call_id = g_strdup_printf("%4X%4X-%4X-%4X-%4X-%4X%4X%4X", - rand() % 0xAAFF + 0x1111, - rand() % 0xAAFF + 0x1111, - rand() % 0xAAFF + 0x1111, - rand() % 0xAAFF + 0x1111, - rand() % 0xAAFF + 0x1111, - rand() % 0xAAFF + 0x1111, - rand() % 0xAAFF + 0x1111, - rand() % 0xAAFF + 0x1111); + slpsession->call_id = g_strdup_printf("%4X%4X-%4X-%4X-%4X-%4X%4X%4X", + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111); content = g_strdup_printf( "EUF-GUID: {A4268EEC-FEC5-49E5-95C3-F126696BDBF6}\r\n" - "SessionID: %ld\r\n" + "SessionID: %lu\r\n" "AppID: 1\r\n" "Context: %s", session_id, @@ -270,13 +278,12 @@ msn_user_get_passport(remote_user), msn_user_get_passport(local_user), branch, - call_id, + slpsession->call_id, strlen(content) + 5, content); g_free(content); g_free(branch); - g_free(call_id); gaim_debug_misc("msn", "Message = {%s}\n", body); diff -r 4f8258b2bb8d -r ac638b90da44 src/protocols/msn/msnslp.h --- a/src/protocols/msn/msnslp.h Thu Sep 18 02:53:11 2003 +0000 +++ b/src/protocols/msn/msnslp.h Thu Sep 18 02:54:32 2003 +0000 @@ -35,6 +35,8 @@ MsnSwitchBoard *swboard; + char *call_id; + long session_id; long base_id; long prev_msg_id; diff -r 4f8258b2bb8d -r ac638b90da44 src/protocols/msn/switchboard.c --- a/src/protocols/msn/switchboard.c Thu Sep 18 02:53:11 2003 +0000 +++ b/src/protocols/msn/switchboard.c Thu Sep 18 02:54:32 2003 +0000 @@ -89,7 +89,7 @@ MsnSwitchBoard *swboard = servconn->data; MsnSession *session = servconn->session; - send_clientcaps(swboard); + //send_clientcaps(swboard); if (session->protocol_ver >= 9) {