From: Jaehyun Kim Date: Tue, 24 Sep 2024 03:35:32 +0000 (+0900) Subject: Check if ckmc_get_data() provides NULL value X-Git-Tag: accepted/tizen/unified/20240930.043759^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F38%2F318038%2F2;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Check if ckmc_get_data() provides NULL value There are cases where ckmc_get_data() provides NULL value due to a DB issue used by key-manager. Code has been added to check for this situation. Change-Id: Ic79efcc26efa33251771bf7757ddda5ef600f895 Signed-off-by: Jaehyun Kim --- diff --git a/src/wifi-key-encryption.c b/src/wifi-key-encryption.c index 33c8f5a..2177985 100755 --- a/src/wifi-key-encryption.c +++ b/src/wifi-key-encryption.c @@ -127,6 +127,9 @@ 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) + DBG("iv_buf is null"); + if (err == CKMC_ERROR_DB_ALIAS_UNKNOWN) { ckmc_policy_s policy; policy.extractable = true;