From f02c11d88be7e360ab14da63b014707034591df2 Mon Sep 17 00:00:00 2001 From: Terry Wilson <twilson@digium.com> Date: Mon, 31 Mar 2008 21:01:59 +0000 Subject: [PATCH] Yeah, simplify that logic a bit... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112035 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/http.c b/main/http.c index 1723fe4e74..5754d7c97b 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); -- GitLab