Mercurial > pidgin
diff libpurple/protocols/msn/switchboard.c @ 30985:94b3092c904d
Apparently, UBM was updated with more parameters in MSNp16. One is
your own email address, but I'm not sure what the 4th parameter is.
Anyway, update payload length to use the correct parameter now.
Fixes #13022.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 02 Dec 2010 03:59:58 +0000 |
parents | b1022aa66b8a |
children | 2f2c45abb3af |
line wrap: on
line diff
--- a/libpurple/protocols/msn/switchboard.c Thu Dec 02 02:56:51 2010 +0000 +++ b/libpurple/protocols/msn/switchboard.c Thu Dec 02 03:59:58 2010 +0000 @@ -743,7 +743,10 @@ ubm_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) { purple_debug_misc("msn", "get UBM...\n"); - cmd->payload_len = atoi(cmd->params[3]); + if (cmdproc->session->protocol_ver >= 16) + cmd->payload_len = atoi(cmd->params[5]); + else + cmd->payload_len = atoi(cmd->params[3]); cmdproc->last_cmd->payload_cb = msg_cmd_post; }