Commit cab748c1 authored by Slava Monich's avatar Slava Monich

[mms_codec] Ignore unknown headers and continue parsing

There's no reason to stop parsing. The assumption was that unknown headers
will follow the old ones that we do support but that turned out not to be
the case in the real life.
parent 9567dcf8
......@@ -1020,10 +1020,10 @@ static gboolean mms_parse_headers(struct wsp_header_iter *iter,
p = wsp_header_iter_get_hdr(iter);
h = p[0] & 0x7f;
/* Stop parsing when we see an unknown header */
/* Unknown header, skip */
handler = handler_for_type(h);
if (handler == NULL)
break;
continue;
/* Unsupported header, skip */
if (entries[h].data == NULL)
......
......@@ -65,6 +65,7 @@ int main(int argc, char* argv[])
"m-retrieve_5.conf",
"m-retrieve_6.conf",
"m-retrieve_7.conf",
"m-retrieve_8.conf",
"m-notifyresp.ind",
"m-read-rec.ind",
"m-send_1.req",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment