diff options
author | Terry Wilson <twilson@digium.com> | 2008-03-27 22:10:25 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2008-03-27 22:10:25 +0000 |
commit | 28480680178a90007333d8aee28469d07b513fc1 (patch) | |
tree | d3b1376633385c5bf6c97d872430d63b927841da /main/http.c | |
parent | 3d4cb09ae80ee6b861e60a7773d7341d391888b6 (diff) |
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
Diffstat (limited to 'main/http.c')
-rw-r--r-- | main/http.c | 2 |
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; } |