Hi All,<br><br>The function parse_content_type_hdr() is failing in decode_mime_type() when Content-Type parameter &quot;boundary&quot; has value comma as below. The error message is &quot;<span style="color: rgb(255, 0, 0);">ERROR:parse_content_type_hdr: CONTENT_TYPE hdr contains &quot;</span><br style="color: rgb(255, 0, 0);">

<span style="color: rgb(255, 0, 0);">            &quot;more then one mime type :-(!<br><br></span>Content Type Header is as below, It works fine if the boundary value is without comma.<br><br>Content-Type: multipart/mixed;boundary=&quot;<b>,</b>AW&quot;<br>
<br>The parse_content_type_hdr() is failing in the following code,<br><br>    ret = decode_mime_type(msg-&gt;content_type-&gt;body.s, end , &amp;mime);<br>    if (ret==0)<br>        goto error;<br>    if (ret!=end) {<br>       <br>
<span style="color: rgb(255, 0, 0);">         LOG(L_INFO,&quot;ERROR:parse_content_type_hdr: CONTENT_TYPE hdr contains &quot;</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">            &quot;more then one mime type :-(!\n&quot;);</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">           goto error ; </span><br>    }<br><br>I thought of fixing this issue by commenting the code for condition ret !=end. I&#39;m  not sure why we we need that check, as mime variable has the information to process the content.<br>
<br>Please let me know if you see any impact.<br><br>Thanks<br>Jijo<br><br><br><br><br>