aboutsummaryrefslogtreecommitdiffstats
path: root/agent/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/cache.c')
-rw-r--r--agent/cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/agent/cache.c b/agent/cache.c
index 1c8a42bf9..9b90d93f4 100644
--- a/agent/cache.c
+++ b/agent/cache.c
@@ -185,7 +185,9 @@ new_data (const char *string, struct secret_data_s **r_data)
d_enc->totallen = total;
res = npth_mutex_lock (&encryption_lock);
if (res)
- log_fatal ("failed to acquire cache encryption mutex: %s\n", strerror (res));
+ log_fatal ("failed to acquire cache encryption mutex: %s\n",
+ strerror (res));
+
err = gcry_cipher_encrypt (encryption_handle, d_enc->data, total,
d->data, total - 8);
xfree (d);