Bug in multipart_body_clone when receiving INVITE with multipart/mixed body

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have an incoming INVITE being received which contains a multipart body,
i.e. an SDP and another custom body. The rx_data is then being cloned using
pjsip_rx_data_clone that calls down into multipart_clone_data.

Within this function the pj_list_push_back encounters a problem using the
dst multipart_data containing a list part_head.

I believe it is a simple fix to initialize the dst->part_head list using

    pj_list_init(&dst->part_head);

Using version 2.1.0 of PJSip library, proposed patch attached for this
one-liner.

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140312/597bcd20/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sip_multipart.c.patch
Type: application/octet-stream
Size: 46 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140312/597bcd20/attachment-0001.patch>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux