diff options
author | Martin Willi <martin@revosec.ch> | 2012-07-13 15:42:14 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-07-13 15:43:04 +0200 |
commit | d19f0ae3e0a6bbff549911e910c06d8ef51ad563 (patch) | |
tree | 63d2f3ee37b5b436541effe3f066f4f1a5393512 /src/libcharon/control/controller.c | |
parent | e0bfc4d63ceabeaef3f1d51191196198c8265e65 (diff) | |
download | strongswan-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/control/controller.c')
-rw-r--r-- | src/libcharon/control/controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/control/controller.c b/src/libcharon/control/controller.c index 0f98eb8c2..77d73dba9 100644 --- a/src/libcharon/control/controller.c +++ b/src/libcharon/control/controller.c @@ -209,7 +209,7 @@ static bool wait_for_listener(interface_job_t *job, u_int timeout) METHOD(logger_t, listener_log, void, interface_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) { ike_sa_t *target; @@ -627,7 +627,7 @@ METHOD(controller_t, terminate_child, status_t, * See header */ bool controller_cb_empty(void *param, debug_t group, level_t level, - ike_sa_t *ike_sa, char *message) + ike_sa_t *ike_sa, const char *message) { return TRUE; } |