aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/sql/sql_logger.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-07-13 15:42:14 +0200
committerMartin Willi <martin@revosec.ch>2012-07-13 15:43:04 +0200
commitd19f0ae3e0a6bbff549911e910c06d8ef51ad563 (patch)
tree63d2f3ee37b5b436541effe3f066f4f1a5393512 /src/libcharon/plugins/sql/sql_logger.c
parente0bfc4d63ceabeaef3f1d51191196198c8265e65 (diff)
downloadstrongswan-d19f0ae3e0a6bbff549911e910c06d8ef51ad563.tar.bz2
strongswan-d19f0ae3e0a6bbff549911e910c06d8ef51ad563.tar.xz
Don't modify the message string passed to logger, as it gets reused
Diffstat (limited to 'src/libcharon/plugins/sql/sql_logger.c')
-rw-r--r--src/libcharon/plugins/sql/sql_logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/sql/sql_logger.c b/src/libcharon/plugins/sql/sql_logger.c
index 093053516..6db3258d2 100644
--- a/src/libcharon/plugins/sql/sql_logger.c
+++ b/src/libcharon/plugins/sql/sql_logger.c
@@ -50,7 +50,7 @@ struct private_sql_logger_t {
METHOD(logger_t, log_, void,
private_sql_logger_t *this, debug_t group, level_t level, int thread,
- ike_sa_t* ike_sa, char *message)
+ ike_sa_t* ike_sa, const char *message)
{
if (this->recursive->get(this->recursive))
{