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
This commit is contained in:
parent
917a006bfe
commit
caab44dbed
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue