diff --git a/bridges/bridge_softmix.c b/bridges/bridge_softmix.c index f490967e2aca2bc751edc1ca8057fee237c0c28c..8de88f257ca88350108e2bcab9299255a2992646 100644 --- a/bridges/bridge_softmix.c +++ b/bridges/bridge_softmix.c @@ -541,6 +541,8 @@ static int append_all_streams(struct ast_stream_topology *dest, dest_index++; if (ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) { + /* This cannot fail because dest_index - 1 is less than the + * current count in dest. */ ast_stream_topology_set_stream(dest, dest_index - 1, clone); added = 1; break;