MT#61856 call_flags: attr manipulations, return if unsupported

If the type is wrong, just return.
This make it consistent with the rest of attr manipulations
helpers around.

Change-Id: I4fa8aba6ef8fa382e36b2042e60b51df7ad10494
master
Donat Zenichev 2 days ago
parent 42cd2e0198
commit 89e126af29

@ -224,8 +224,10 @@ static const char *ng_sdp_attr_manipulations_iter(const ng_parser_t *parser, str
return parser->dict_iter(parser, command_action, ng_sdp_attr_media_iter, sm);
}
INLINE const char *ng_sdp_attr_manipulations(const ng_parser_t *parser, sdp_ng_flags *flags, parser_arg value) {
if (!parser->is_dict(value))
if (!parser->is_dict(value)) {
ilog(LOG_WARN, "SDP manipulations: Wrong type for this type of command.");
return NULL;
}
return parser->dict_iter(parser, value, ng_sdp_attr_manipulations_iter, flags);
}

Loading…
Cancel
Save