From: Jaehyun Kim Date: Wed, 25 Sep 2024 02:58:03 +0000 (+0900) Subject: Do not return when ckmc_get_data() provides NULL value X-Git-Tag: accepted/tizen/7.0/unified/20240925.162126^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7e9b461154bf9bf42f0dca478eed69cb6e1fbaa;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git 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 --- 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;