diff --git a/res/ari/resource_bridges.c b/res/ari/resource_bridges.c index e08df7d8b10b8476f404f9c58c8bddd9ffb9a824..019cdea22b7f0455ede66c0e048b59d8791d3d96 100644 --- a/res/ari/resource_bridges.c +++ b/res/ari/resource_bridges.c @@ -962,13 +962,12 @@ void ast_ari_bridges_create_with_id(struct ast_variable *headers, if (bridge) { /* update */ - if (!ast_strlen_zero(args->name)) { - if (!strcmp(args->name, bridge->name)) { - ast_ari_response_error( - response, 500, "Internal Error", - "Changing bridge name is not implemented"); - return; - } + if (!ast_strlen_zero(args->name) + && strcmp(args->name, bridge->name)) { + ast_ari_response_error( + response, 500, "Internal Error", + "Changing bridge name is not implemented"); + return; } if (!ast_strlen_zero(args->type)) { ast_ari_response_error(