diff --git a/modules/proto_msrp/msrp_parser.c b/modules/proto_msrp/msrp_parser.c index 16cd49298c..0914f9cba8 100644 --- a/modules/proto_msrp/msrp_parser.c +++ b/modules/proto_msrp/msrp_parser.c @@ -184,12 +184,13 @@ int parse_msrp_msg( char* buf, int len, struct msrp_msg *msg) case HDR_EXPIRES_T: link_hdr( expires, hf); break; - case HDR_OTHER_T: - break; case HDR_ERROR_T: - default: LM_INFO("bad header field\n"); goto err_free_hf; + case HDR_OTHER_T: + default: + /* There can be other headers in the MSRP but we don't need to use them, so ignoring it */ + break; } /* add the header to the list*/