Hi All,<br><br>The function parse_content_type_hdr() is failing in decode_mime_type() when Content-Type parameter "boundary" has value comma as below. The error message is "<span style="color: rgb(255, 0, 0);">ERROR:parse_content_type_hdr: CONTENT_TYPE hdr contains "</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> "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="<b>,</b>AW"<br>
<br>The parse_content_type_hdr() is failing in the following code,<br><br> ret = decode_mime_type(msg->content_type->body.s, end , &mime);<br> if (ret==0)<br> goto error;<br> if (ret!=end) {<br> <br>
<span style="color: rgb(255, 0, 0);"> LOG(L_INFO,"ERROR:parse_content_type_hdr: CONTENT_TYPE hdr contains "</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> "more then one mime type :-(!\n");</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'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>