From 0ab5ce3267c5a62d4149c71ed90b5e46f811bf6f Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Fri, 6 Dec 2024 13:57:54 +0100 Subject: [PATCH] KRB5: mistype fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: ``` *** CID 515655: Uninitialized variables (UNINIT) /home/runner/work/sssd/sssd/src/providers/krb5/krb5_child.c: 2435 in get_and_save_tgt() 2429 goto done; 2430 } 2431 2432 /* Make sure ccache is created and written as the user */ 2433 kerr = switch_to_user(); 2434 if (kerr != EOK) { >>> CID 515655: Uninitialized variables (UNINIT) >>> Using uninitialized value "ret" when calling "sss_debug_fn". 2435 DEBUG(SSSDBG_CRIT_FAILURE, "Failed to switch to user IDs: %d\n", ret); 2436 goto done; 2437 } 2438 2439 log_process_caps("Saving ccache"); 2440 ``` Reviewed-by: Jakub Vávra (cherry picked from commit 110c4aead0d6f1f147bd3dc741528ce2cba5bedc) --- src/providers/krb5/krb5_child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 7c91d62715..0c4f92e9f0 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -2432,7 +2432,7 @@ static krb5_error_code get_and_save_tgt(struct krb5_req *kr, /* Make sure ccache is created and written as the user */ kerr = switch_to_user(); if (kerr != EOK) { - DEBUG(SSSDBG_CRIT_FAILURE, "Failed to switch to user IDs: %d\n", ret); + DEBUG(SSSDBG_CRIT_FAILURE, "Failed to switch to user IDs: %d\n", kerr); goto done; }