Multipart module bug? Lack of \r\n within the "multipart_print_body" function

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

 



On Tue, Oct 11, 2011 at 11:06 PM, Luis Martin Gil
<martingil.luis at gmail.com> wrote:
> Hi Benny,
> I'm working with multiparts and I might found a bug in the multipart module.
> I am using PJSIP version 1.10.
> The function "multipart_print_body" of the "pjsip/src/pjsip/sip_multipart.c"
> file?does not print well the optional headers contained in the "pjsip_hdr
> *hdr" variable.
> This is the patch :
> --- sip_multipart.c.original 2011-10-11 07:00:48.210547786 -0900
> +++ sip_multipart.c.modified 2011-10-11 07:00:21.946540744 -0900
> @@ -86,6 +86,8 @@
> ? return -1;
> ? ? ?p += printed;
> ? ? ?hdr = hdr->next;
> + ? ?*p++ = '\r';
> + ? ?*p++ = '\n';
> ? }
>

You're right, that's a bug indeed. I just committed your patch (with
minor modification) in https://trac.pjsip.org/repos/ticket/1387.

Thanks!

 Benny



[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