Coverity issue fixed 03/282403/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.060438 accepted/tizen/7.0/unified/hotfix/20221116.104543 accepted/tizen/unified/20221005.023207 tizen_7.0_m2_release
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>
Sat, 1 Oct 2022 14:57:38 +0000 (20:27 +0530)
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>
Sat, 1 Oct 2022 14:57:38 +0000 (20:27 +0530)
Change-Id: I55c665dbaa27ac4fc8f8b2c92983ba1287984a44
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
server/fido_app_id_handler.c

index 395d7514d98d2abc69fbbc43648b6d99776a9ddb..6af5d457441ef97d88c049482e11533c0f53e442 100755 (executable)
@@ -240,7 +240,13 @@ __get_pub_key(const char *json_id_str)
        }
 
        char *pub_key = strtok_r(NULL, ":", &save_ptr);
-       RET_IF_FAIL(pub_key != NULL, NULL);
+
+       if (pub_key == NULL) {
+               free(tempStr);
+               return NULL;
+       }
+
+       free(tempStr);
 
        return pub_key;
 }