diff options
author | Edward Rudd | 2004-02-04 02:16:33 +0000 |
---|---|---|
committer | Edward Rudd | 2004-02-04 02:16:33 +0000 |
commit | 0fc4f656c7768469d971234ef7fe687a6b9ea1b7 (patch) | |
tree | 75b266468ebcf627249fae853d8cf12bcf3d790b /mod_log_sql.c | |
parent | 3f25cbb47c251d84980f4176be06173388d29225 (diff) |
fixed segfaul bug with pointer arithmetic in add_server_string_slot
Added authors file
release 1.94
Diffstat (limited to 'mod_log_sql.c')
-rw-r--r-- | mod_log_sql.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 | ||