Mercurial > pidgin.yaz
diff libpurple/protocols/msn/slplink.c @ 31768:8cf9270acf4c
Add a maximum length when parsing the P2P wire data.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 10 Mar 2011 05:00:17 +0000 |
parents | 34da321b60f1 |
children | 50ca9e64186b |
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c Thu Mar 10 03:18:45 2011 +0000 +++ b/libpurple/protocols/msn/slplink.c Thu Mar 10 05:00:17 2011 +0000 @@ -289,7 +289,7 @@ /* Maybe we will want to create a new msg for this slpmsg instead of * reusing the same one all the time. */ info = slpmsg->p2p_info; - part = msn_slpmsgpart_new(info); + part = msn_slpmsgpart_new(msn_p2p_info_dup(info)); part->ack_data = slpmsg; real_size = (msn_p2p_info_get_flags(info) == P2P_ACK) ? 0 : slpmsg->size;