aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-31 21:01:59 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-31 21:01:59 +0000
commit5e38bdd8e2da7969484c82ad7dbe8437c64a7b19 (patch)
tree6dd7bd4c282a2b729377406ed35d6e0a3275b826 /main/http.c
parent4bb7658005ec797e0abc1e512cc2dca950c2c93a (diff)
Yeah, simplify that logic a bit...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112035 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/http.c b/main/http.c
index 1723fe4e7..5754d7c97 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);