Commit a3e1f1cf authored by Chris T's avatar Chris T
Browse files

Ensure Compatibility with Telus

parent 4a4b2df6
......@@ -732,10 +732,9 @@ static header_handler handler_for_type(enum mms_header header)
return extract_text;
case MMS_HEADER_INVALID:
case __MMS_HEADER_MAX:
default:
return NULL;
}
return NULL;
}
struct header_handler_entry {
......@@ -781,8 +780,17 @@ static gboolean mms_parse_headers(struct wsp_header_iter *iter,
handler = handler_for_type(h);
if (handler == NULL) {
DBG("no handler for type %u", h);
return FALSE;
if(h == MMS_HEADER_INVALID) {
DBG("no handler for type %u", h);
return FALSE;
} else if (h == __MMS_HEADER_MAX) {
DBG("no handler for type %u", h);
return FALSE;
} else {
/* Telus has strange headers, so this handles it */
DBG("type isn't a part of the standard? Skipping %u", h);
continue;
}
}
DBG("saw header of type %u", h);
......
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