diff options
| author | 2004-08-23 05:41:37 +0000 | |
|---|---|---|
| committer | 2004-08-23 05:41:37 +0000 | |
| commit | 104bb4c049e8a672af96977434bda814feee83b8 (patch) | |
| tree | 8a6f307bc5cd60c625b8c57233f93ac8b75161e5 | |
| parent | ceb9aca770cf5b5464522fc032eb0f1cf73d6867 (diff) | |
fixes by Douglas E. Warner to fix "NULL" fields.
finally fixed the annoying reconnect mysql segfault.
| -rw-r--r-- | mod_log_sql_mysql.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mod_log_sql_mysql.c b/mod_log_sql_mysql.c index fd1668a..5c426c9 100644 --- a/mod_log_sql_mysql.c +++ b/mod_log_sql_mysql.c | |||
| @@ -67,6 +67,8 @@ static logsql_opendb_ret log_sql_mysql_connect(server_rec *s, logsql_dbconnectio | |||
| 67 | static void log_sql_mysql_close(logsql_dbconnection *db) | 67 | static void log_sql_mysql_close(logsql_dbconnection *db) |
| 68 | { | 68 | { |
| 69 | mysql_close((MYSQL *)db->handle); | 69 | mysql_close((MYSQL *)db->handle); |
| 70 | /* mysql_close frees this data so NULL it out incase we reconnect later */ | ||
| 71 | db->handle=NULL; | ||
| 70 | } | 72 | } |
| 71 | 73 | ||
| 72 | /* Routine to escape the 'dangerous' characters that would otherwise | 74 | /* Routine to escape the 'dangerous' characters that would otherwise |
| @@ -75,8 +77,9 @@ static void log_sql_mysql_close(logsql_dbconnection *db) | |||
| 75 | static const char *log_sql_mysql_escape(const char *from_str, apr_pool_t *p, | 77 | static const char *log_sql_mysql_escape(const char *from_str, apr_pool_t *p, |
| 76 | logsql_dbconnection *db) | 78 | logsql_dbconnection *db) |
| 77 | { | 79 | { |
| 2008-03-05 | |||
| * | (no commit message) | 2008-03-03 | |
| * | (no commit message) | 2008-02-20 | |
| * | prepare for an alpha release | 2008-01-24 | |
| * | (no commit message) | 2007-12-15 | |
| * | Initial support for openpgp keys | 2007-12-15 | |
| * | (no commit message) | 2007-12-10 | |
| * | Do not allow resuming sessions on different servers. | 2007-12-09 | |
| * | Corrected bug which did not allow the TLS session cache to be used. | 2007-12-09 | |
| * | Added support for sending more than one certificate. | 2007-12-08 | |
| * | (no commit message) | 2007-12-03 | |
| * | better handling of RSAFile and DHFile | 2007-12-03 | |
| * | (no commit message) | 2007-12-02 | |
| * | The compatibility mode can now be enabled only using the GnuTLSPriorities str... | 2007-12-02 | |
| * | (no commit message) | 2007-12-02 | |
| * | (no commit message) | 2007-12-02 | |
| * | (no commit message) | 2007-12-01 | |
