From a7e9b461154bf9bf42f0dca478eed69cb6e1fbaa Mon Sep 17 00:00:00 2001 From: Jaehyun Kim Date: Wed, 25 Sep 2024 11:58:03 +0900 Subject: [PATCH] Do not return when ckmc_get_data() provides NULL value When first connecting after downloading the image, iv_buf is always provided as null because the alias is not created. This is not an error case. Change-Id: I8d3ebec5de05a62b49706c6d9a72b24e5e2600f5 Signed-off-by: Jaehyun Kim --- src/wifi-key-encryption.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wifi-key-encryption.c b/src/wifi-key-encryption.c index 6268cb4..2177985 100755 --- a/src/wifi-key-encryption.c +++ b/src/wifi-key-encryption.c @@ -127,10 +127,8 @@ static void* __netconfig_set_param_list_aes_gcm(ckmc_param_list_h param) err = ckmc_get_data(IV_ALIAS, NULL, &iv_buf); - if (iv_buf == NULL) { + if (iv_buf == NULL) DBG("iv_buf is null"); - return NULL; - } if (err == CKMC_ERROR_DB_ALIAS_UNKNOWN) { ckmc_policy_s policy; -- 2.34.1