/pidgin/main: 7b52ca213832: Fix for TALOS-CAN-0137
Andrew Victor
andrew.victor at mxit.com
Mon Jun 20 20:09:57 EDT 2016
Changeset: 7b52ca213832882c9f69b836560ba44c6e929a34
Author: Andrew Victor <andrew.victor at mxit.com>
Date: 2016-06-02 16:21 -0500
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/7b52ca213832
Description:
Fix for TALOS-CAN-0137
diffstat:
libpurple/protocols/mxit/protocol.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff --git a/libpurple/protocols/mxit/protocol.c b/libpurple/protocols/mxit/protocol.c
--- a/libpurple/protocols/mxit/protocol.c
+++ b/libpurple/protocols/mxit/protocol.c
@@ -2666,7 +2666,8 @@ int mxit_parse_packet( struct MXitSessio
/* new record */
if ( packet.rcount == 1 ) {
/* packet command */
- packet.cmd = atoi( packet.records[0]->fields[0]->data );
+ if ( packet.records[0]->fcount > 0 )
+ packet.cmd = atoi( packet.records[0]->fields[0]->data );
}
else if ( packet.rcount == 2 ) {
/* special case: binary multimedia packets should not be parsed here */
More information about the Commits
mailing list