Mercurial > pidgin
comparison libpurple/protocols/msn/directconn.c @ 30932:dec85cefc758
Don't attempt to process zero-length DC messages. We should probably
just use these for acking or something.
Fixes #12660.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 21 Nov 2010 00:53:26 +0000 |
parents | b9c80d9c2ae5 |
children | 2de522fa534a |
comparison
equal
deleted
inserted
replaced
30930:1d035209559d | 30932:dec85cefc758 |
---|---|
628 dc->slpcall = NULL; | 628 dc->slpcall = NULL; |
629 break; | 629 break; |
630 | 630 |
631 case DC_STATE_ESTABLISHED: | 631 case DC_STATE_ESTABLISHED: |
632 | 632 |
633 part = msn_slpmsgpart_new_from_data(dc->in_buffer + 4, dc->header.length); | 633 if (dc->header.length) { |
634 msn_slplink_process_msg(dc->slplink, part); | 634 part = msn_slpmsgpart_new_from_data(dc->in_buffer + 4, dc->header.length); |
635 msn_slplink_process_msg(dc->slplink, part); | |
636 } | |
635 | 637 |
636 /* | 638 /* |
637 if (dc->num_calls == 0) { | 639 if (dc->num_calls == 0) { |
638 msn_dc_destroy(dc); | 640 msn_dc_destroy(dc); |
639 | 641 |