From 08e8fe7d086fad860755b845aa48816469c2b6ce Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 14 May 2026 19:02:19 +0200 Subject: [PATCH] MT#61856 call_flags: log wrong type used in sdp media remove As other methods around (e.g. attr manipulations) log in case the wrong type is used, do the same for sdp media removal. Change-Id: I576763c698431637aa5647b955178c3a25485806 --- daemon/call_flags.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/call_flags.c b/daemon/call_flags.c index 1e0ab7ad1..a59b4e151 100644 --- a/daemon/call_flags.c +++ b/daemon/call_flags.c @@ -248,8 +248,10 @@ static const char *ng_sdp_media_remove_iter(str *media_type, unsigned int i, hel return NULL; } INLINE void ng_sdp_media_remove(const ng_parser_t *parser, sdp_ng_flags *flags, parser_arg value) { - if (!parser->is_list(value)) + if (!parser->is_list(value)) { + ilog(LOG_WARN, "SDP media remove: Wrong type for this type of command."); return; + } parser->list_iter(parser, value, ng_sdp_media_remove_iter, NULL, flags); }