diff --git a/main/http.c b/main/http.c index 1723fe4e74099785fa5e48bd575a22e08aae1bae..5754d7c97be8d7ed56da97a910ef8259359f394e 100644 --- a/main/http.c +++ b/main/http.c @@ -684,7 +684,8 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char } /* We want requests to start with the (optional) prefix and '/' */ - if (((l = strlen(prefix)) || !*prefix) && !strncasecmp(uri, prefix, l) && uri[l] == '/') { + l = strlen(prefix); + if (!strncasecmp(uri, prefix, l) && uri[l] == '/') { uri += l + 1; /* scan registered uris to see if we match one. */ AST_RWLIST_RDLOCK(&uris);