Resolved svace issue 74/190374/4
authorRandeep Singh <randeep.s@samsung.com>
Mon, 1 Oct 2018 06:09:41 +0000 (11:39 +0530)
committerRandeep Singh <randeep.s@samsung.com>
Mon, 1 Oct 2018 10:54:19 +0000 (16:24 +0530)
Change-Id: I1745aab3bea98af14a8726f76753d799132ab47f
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
common/cryptoutil/src/AsmCrypto.cpp [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index f919196..bbd4f3d
@@ -267,8 +267,11 @@ AsmCrypto::getAsmToken(void)
                        SAFE_DELETE(realpath_res);
                        return std::string();
                }
+               int ret = fseek(file, 0, SEEK_SET);
 
-               fseek(file, 0, SEEK_SET);
+               if(0 != ret) {
+                       _INFO("fseek returned error code[%d]", ret);
+               }
 
                char *config = (char*)(calloc(1, size + 1));
                int num_bytes = fread(config, size, 1, file);