1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

- Fix segfault on amd64

PR:		ports/133411
Submitted by:	Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Approved by:	maintainer timeout (edwin; 11 months)
This commit is contained in:
Pav Lucistnik 2010-02-12 13:39:26 +00:00
parent da194ca15e
commit f61b1800d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249664

View File

@ -78,7 +78,7 @@
#include <http_log.h>
#include <http_protocol.h>
#include <http_request.h>
+/* #include <ap_compat.h> */
+#include <apr_strings.h>
+/* #include <iconv_hook/iconv.h> */
+#include <regex.h>
@ -241,8 +241,9 @@
if (*args && (arg = ap_getword_conf_nc(cmd->pool, &args))) {
- LOG(APLOG_DEBUG, cmd->server, "add_client_encoding: agent: %s", arg);
- *(void **)ap_push_array(conf->client_encoding) =
- ap_pregcomp(cmd->pool, arg, REG_EXTENDED|REG_ICASE|REG_NOSUB);
+ *(void **)apr_array_push(conf->client_encoding) =
ap_pregcomp(cmd->pool, arg, REG_EXTENDED|REG_ICASE|REG_NOSUB);
+ ap_pregcomp(cmd->pool, arg, AP_REG_EXTENDED|AP_REG_ICASE|AP_REG_NOSUB);
}
/* register list of possible encodings from above useragent */