Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/switchboard.c @ 23559:7e16d193bb57
Get rid of that whole msn_set_payload_len thing and correctly set the
cmd->payload_len in each command handler callback. This should take
care of that CAL 3 error and a few sporadic "unhandled commands" I saw
while testing HTTP method.
References #5377.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 09 Jul 2008 01:46:10 +0000 |
parents | 5c95339855b2 |
children | 7bceac816e19 |
comparison
equal
deleted
inserted
replaced
23558:cab5420c3879 | 23559:7e16d193bb57 |
---|---|
750 } | 750 } |
751 | 751 |
752 static void | 752 static void |
753 msg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 753 msg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
754 { | 754 { |
755 cmdproc->servconn->payload_len = atoi(cmd->params[2]); | 755 cmd->payload_len = atoi(cmd->params[2]); |
756 cmdproc->last_cmd->payload_cb = msg_cmd_post; | 756 cmdproc->last_cmd->payload_cb = msg_cmd_post; |
757 } | 757 } |
758 | 758 |
759 static void | 759 static void |
760 ubm_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 760 ubm_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
761 { | 761 { |
762 purple_debug_misc("MSNP14","get UBM...\n"); | 762 purple_debug_misc("MSNP14","get UBM...\n"); |
763 cmdproc->servconn->payload_len = atoi(cmd->params[4]); | 763 cmd->payload_len = atoi(cmd->params[4]); |
764 cmdproc->last_cmd->payload_cb = msg_cmd_post; | 764 cmdproc->last_cmd->payload_cb = msg_cmd_post; |
765 } | 765 } |
766 | 766 |
767 static void | 767 static void |
768 nak_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 768 nak_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |