From 321e64dc670699f5bbf6afe57678da795a674f7d Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Tue, 26 Dec 2023 21:24:14 +0100 Subject: [PATCH] tpm2-util: declare the cleanup attribute first As we do everywhere else (apart from it being incosistent, the switched order also makes Coccinelle unhappy). --- src/shared/tpm2-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 2a75db572dd..80a0d5f2dc6 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -7569,7 +7569,7 @@ int tpm2_util_pbkdf2_hmac_sha256(const void *pass, size_t saltlen, uint8_t ret_key[static SHA256_DIGEST_SIZE]) { - uint8_t _cleanup_(erase_and_freep) *buffer = NULL; + _cleanup_(erase_and_freep) uint8_t *buffer = NULL; uint8_t u[SHA256_DIGEST_SIZE]; /* To keep this simple, since derived KeyLen (dkLen in docs) -- 2.47.3