Do not return when ckmc_get_data() provides NULL value 36/318136/1 accepted/tizen/7.0/unified/20240925.162126
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 25 Sep 2024 02:58:03 +0000 (11:58 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Wed, 25 Sep 2024 02:58:03 +0000 (11:58 +0900)
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 <jeik01.kim@samsung.com>
src/wifi-key-encryption.c

index 6268cb4dd46dbf42fa145e1cf2897a5242d8cbe2..2177985c17357f71d9a0d93ade88b6cab9016c16 100755 (executable)
@@ -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;