From e0c2ca8624ebbf1a2c6ff9cff3d1284236e327e2 Mon Sep 17 00:00:00 2001 From: kkadosh Date: Tue, 15 May 2018 15:08:34 +0000 Subject: Refactor the encryption process to extract encrypt/decrypt functions (#176) Refactor the encryption process to extract encrypt/decrypt functions --- src/sp_utils.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/sp_utils.c') diff --git a/src/sp_utils.c b/src/sp_utils.c index c0b2fb9..8b7ce49 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -241,15 +241,13 @@ void sp_log_disable_ret(const char* restrict path, "Aborted execution on return of the function '%s' in %s:%d, " "because the function returned '%s', which matched the rule '%s'.", path, zend_get_executed_filename(TSRMLS_C), - zend_get_executed_lineno(TSRMLS_C), ret_value ? ret_value : "?", - alias); + zend_get_executed_lineno(TSRMLS_C), ret_value ? ret_value : "?", alias); } else { - sp_log_msg( - "disabled_function", sim ? SP_LOG_SIMULATION : SP_LOG_DROP, - "Aborted execution on return of the function '%s' in %s:%d, " - "because the function returned '%s', which matched a rule.", - path, zend_get_executed_filename(TSRMLS_C), - zend_get_executed_lineno(TSRMLS_C), ret_value ? ret_value : "?"); + sp_log_msg("disabled_function", sim ? SP_LOG_SIMULATION : SP_LOG_DROP, + "Aborted execution on return of the function '%s' in %s:%d, " + "because the function returned '%s', which matched a rule.", + path, zend_get_executed_filename(TSRMLS_C), + zend_get_executed_lineno(TSRMLS_C), ret_value ? ret_value : "?"); } if (dump) { sp_log_request(dump, config_node->textual_representation, -- cgit v1.3