Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
31767:a01d958f7b26 | 31768:8cf9270acf4c |
---|---|
287 guint64 offset; | 287 guint64 offset; |
288 | 288 |
289 /* Maybe we will want to create a new msg for this slpmsg instead of | 289 /* Maybe we will want to create a new msg for this slpmsg instead of |
290 * reusing the same one all the time. */ | 290 * reusing the same one all the time. */ |
291 info = slpmsg->p2p_info; | 291 info = slpmsg->p2p_info; |
292 part = msn_slpmsgpart_new(info); | 292 part = msn_slpmsgpart_new(msn_p2p_info_dup(info)); |
293 part->ack_data = slpmsg; | 293 part->ack_data = slpmsg; |
294 | 294 |
295 real_size = (msn_p2p_info_get_flags(info) == P2P_ACK) ? 0 : slpmsg->size; | 295 real_size = (msn_p2p_info_get_flags(info) == P2P_ACK) ? 0 : slpmsg->size; |
296 | 296 |
297 offset = msn_p2p_info_get_offset(info); | 297 offset = msn_p2p_info_get_offset(info); |