aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-12 22:49:47 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-12 22:49:47 +0000
commitfb165a268e4a5b779280868589beab30aaacb0f5 (patch)
tree6ab0d56d436114054f62b423b1377c823ce3710c /main
parentc493e22b0666b0d203c244d6638a7ea4752c0cb6 (diff)
Merged revisions 108346 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r108346 | russell | 2008-03-12 17:49:26 -0500 (Wed, 12 Mar 2008) | 4 lines Make the default prefix empty, like it was in Asterisk 1.4. (closes issue #12198, reported by bkruse, patched by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@108347 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/http.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/main/http.c b/main/http.c
index 7588461e2..93ad398e1 100644
--- a/main/http.c
+++ b/main/http.c
@@ -53,7 +53,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/manager.h"
#define MAX_PREFIX 80
-#define DEFAULT_PREFIX "/asterisk"
/* See http.h for more information about the SSL implementation */
#if defined(HAVE_OPENSSL) && (defined(HAVE_FUNOPEN) || defined(HAVE_FOPENCOOKIE))
@@ -937,7 +936,7 @@ static int __ast_http_load(int reload)
int newenablestatic=0;
struct hostent *hp;
struct ast_hostent ahp;
- char newprefix[MAX_PREFIX];
+ char newprefix[MAX_PREFIX] = "";
int have_sslbindaddr = 0;
struct http_uri_redirect *redirect;
struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
@@ -952,8 +951,6 @@ static int __ast_http_load(int reload)
memset(&https_desc.sin, 0, sizeof(https_desc.sin));
https_desc.sin.sin_port = htons(8089);
- strcpy(newprefix, DEFAULT_PREFIX);
-
http_tls_cfg.enabled = 0;
if (http_tls_cfg.certfile)
ast_free(http_tls_cfg.certfile);