Commit 690e687a authored by Slava Monich's avatar Slava Monich

Merge pull request #32 from monich/unknown-headers

Ignore unknown headers and continue parsing
parents 0c173bdd cab748c1
......@@ -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