Skip to content
Snippets Groups Projects
Commit 28480680 authored by Terry Wilson's avatar Terry Wilson
Browse files

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
parent 3d4cb09a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment