From: Terry Wilson Date: Thu, 27 Mar 2008 22:10:25 +0000 (+0000) Subject: Fix another little http problem. In making it match coding guidelines, a comparison... X-Git-Tag: 1.6.0-beta7~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28480680178a90007333d8aee28469d07b513fc1;p=thirdparty%2Fasterisk.git Fix another little http problem. In making it match coding guidelines, a comparison was dropped git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@111500 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/http.c b/main/http.c index ca2fe5df98..dc8814b552 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; }