aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-27 22:10:25 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-27 22:10:25 +0000
commitcaab44dbedf1a060addb7b1dc8820ac55a2a23ce (patch)
treed3b1376633385c5bf6c97d872430d63b927841da /main/http.c
parent917a006bfe16d7a1f98d2f1d6cb725dc995067a7 (diff)
Fix another little http problem. In making it match coding guidelines, a comparison was dropped
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111500 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/http.c b/main/http.c
index ca2fe5df9..dc8814b55 100644
--- a/main/http.c
+++ b/main/http.c
@@ -186,7 +186,7 @@ static struct ast_str *static_callback(struct ast_tcptls_session_instance *ser,
mtype = ftype2mtype(ftype, wkspace, sizeof(wkspace));
/* Cap maximum length */
- if ((len = strlen(uri) + strlen(ast_config_AST_DATA_DIR) + strlen("/static-http/") + 5)) {
+ if ((len = strlen(uri) + strlen(ast_config_AST_DATA_DIR) + strlen("/static-http/") + 5) > 1024) {
goto out403;
}