diff options
-rw-r--r-- | AUTHORS | 2 | ||||
-rw-r--r-- | CHANGELOG | 6 | ||||
-rw-r--r-- | mod_log_sql.c | 5 |
3 files changed, 7 insertions, 6 deletions
@@ -4,7 +4,7 @@ The Apache Foundation | |||
4 | Zeev Suraski <bourbon at netvision.net dot il> | 4 | Zeev Suraski <bourbon at netvision.net dot il> |
5 | Adding the mysql routines (intial revisions) | 5 | Adding the mysql routines (intial revisions) |
6 | 6 | ||
7 | Christopher B. Powell <chris at grubbybabby dot com> | 7 | Christopher B. Powell <chris at grubbybaby dot com> |
8 | Maintainer since version 1.06 | 8 | Maintainer since version 1.06 |
9 | 9 | ||
10 | Edward Rudd <eddie at omegaware dot com> | 10 | Edward Rudd <eddie at omegaware dot com> |
@@ -1,4 +1,4 @@ | |||
1 | $Id: CHANGELOG,v 1.9 2004/01/22 05:26:56 urkle Exp $ | 1 | $Id: CHANGELOG,v 1.10 2004/02/04 02:16:33 urkle Exp $ |
2 | 2 | ||
3 | TODO: | 3 | TODO: |
4 | * Port connection portion to other DBMS? Genericize the module? Start with | 4 | * Port connection portion to other DBMS? Genericize the module? Start with |
@@ -21,9 +21,11 @@ TODO: | |||
21 | * rewrite main core logging function to optimize for speed. | 21 | * rewrite main core logging function to optimize for speed. |
22 | 22 | ||
23 | CHANGES: | 23 | CHANGES: |
24 | 1.94: ? | 24 | 1.94: 2004-02-03 |
25 | * ssl loggin back in as separate module under 1.3 and 2.0 | 25 | * ssl loggin back in as separate module under 1.3 and 2.0 |
26 | * preparsing of format tags is now done to speed up main logging loop. | 26 | * preparsing of format tags is now done to speed up main logging loop. |
27 | * fixed a nasty bug with pointer arithmetic (ick) that caused a segfault with | ||
28 | LogSQLWhichCookies | ||
27 | 29 | ||
28 | 1.93: 2004-01-20 | 30 | 1.93: 2004-01-20 |
29 | * Compiles for apache 1.3 AND 2.0 | 31 | * Compiles for apache 1.3 AND 2.0 |
diff --git a/mod_log_sql.c b/mod_log_sql.c index 68c1e98..f4b8c16 100644 --- a/mod_log_sql.c +++ b/mod_log_sql.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Header: /home/cvs/mod_log_sql/mod_log_sql.c,v 1.12 2004/01/22 05:26:56 urkle Exp $ */ | 1 | /* $Header: /home/cvs/mod_log_sql/mod_log_sql.c,v 1.13 2004/02/04 02:16:33 urkle Exp $ */ |
2 | /* --------* | 2 | /* --------* |
3 | * DEFINES * | 3 | * DEFINES * |
4 | * --------*/ | 4 | * --------*/ |
@@ -629,8 +629,7 @@ static const char *add_server_string_slot(cmd_parms *cmd, | |||
629 | void *ptr = ap_get_module_config(cmd->server->module_config, | 629 | void *ptr = ap_get_module_config(cmd->server->module_config, |
630 | &log_sql_module); | 630 | &log_sql_module); |
631 | int offset = (int)(long)cmd->info; | 631 | int offset = (int)(long)cmd->info; |
632 | apr_array_header_t *ary = *(apr_array_header_t **)((apr_array_header_t *)ptr + offset); | 632 | apr_array_header_t *ary = *(apr_array_header_t **)(ptr + offset); |
633 | |||
634 | addme = apr_array_push(ary); | 633 | addme = apr_array_push(ary); |
635 | *addme = apr_pstrdup(ary->pool, arg); | 634 | *addme = apr_pstrdup(ary->pool, arg); |
636 | 635 | ||