From 8ae273cafe61ec3bf865e27fe01b0e0fb6520847 Mon Sep 17 00:00:00 2001 From: emanuel Date: Thu, 7 Jul 2022 23:10:08 +0100 Subject: [PATCH] Return instead of cleanup jump in tpm begin --- src/tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tpm.c b/src/tpm.c index b0d5d76..00dd653 100644 --- a/src/tpm.c +++ b/src/tpm.c @@ -50,7 +50,7 @@ int tpm_pay(void* fc, tolling_info_t* info, void* security_socket, uint8_t* neig if (!tolling->enabled) { syslog_debug("[facilities] [tolling] tolling is disabled"); - goto cleanup; + return rv; } pthread_mutex_lock(&facilities->epv.time.lock);