Mercurial > pidgin.yaz
changeset 31373: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 | 1d035209559d |
children | ad11780ba8b9 |
files | libpurple/protocols/msn/directconn.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/directconn.c Sat Nov 20 18:12:13 2010 +0000 +++ b/libpurple/protocols/msn/directconn.c Sun Nov 21 00:53:26 2010 +0000 @@ -630,8 +630,10 @@ case DC_STATE_ESTABLISHED: - part = msn_slpmsgpart_new_from_data(dc->in_buffer + 4, dc->header.length); - msn_slplink_process_msg(dc->slplink, part); + if (dc->header.length) { + part = msn_slpmsgpart_new_from_data(dc->in_buffer + 4, dc->header.length); + msn_slplink_process_msg(dc->slplink, part); + } /* if (dc->num_calls == 0) {