From 2482a714cf2e01ff7097643ec79c6c857a6b6b94 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 23 Nov 2023 19:24:51 +1300 Subject: [PATCH] libcli/auth: Call correct function to get HMAC output length Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- libcli/auth/credentials.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c index 5f4e0954cd1..84838be6e73 100644 --- a/libcli/auth/credentials.c +++ b/libcli/auth/credentials.c @@ -181,7 +181,7 @@ static NTSTATUS netlogon_creds_init_hmac_sha256(struct netlogon_creds_Credential const struct samr_Password *machine_password) { gnutls_hmac_hd_t hmac_hnd = NULL; - uint8_t digest[gnutls_hash_get_len(GNUTLS_MAC_SHA256)]; + uint8_t digest[gnutls_hmac_get_len(GNUTLS_MAC_SHA256)]; int rc; ZERO_ARRAY(creds->session_key); -- 2.47.3