diff --git a/daemon/sdp.c b/daemon/sdp.c index cf37f7bd5..c2456cb89 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -322,13 +322,13 @@ static bool sdp_manipulate_remove(struct sdp_manipulations * sdp_manipulations, return false; str_case_ht ht = sdp_manipulations->rem_commands; - if (t_hash_table_is_set(ht) && t_hash_table_lookup(ht, attr_name)) - return true; - - ilog(LOG_DEBUG, "Cannot insert: '" STR_FORMAT "' because prevented by SDP manipulations (remove)", - STR_FMT(attr_name)); + if (t_hash_table_is_set(ht) && t_hash_table_lookup(ht, attr_name)) { + ilog(LOG_DEBUG, "Cannot insert: '" STR_FORMAT "' because prevented by SDP manipulations (remove)", + STR_FMT(attr_name)); + return true; /* means remove */ + } - return false; + return false; /* means don't remove */ } /**