[IOT-2633] Add NULL check for reset profile 45/22845/2
authorJongmin Choi <jminl.choi@samsung.com>
Mon, 16 Oct 2017 07:31:09 +0000 (16:31 +0900)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 16 Oct 2017 17:47:43 +0000 (17:47 +0000)
Add NULL check for reset profile

Change-Id: Ic767c5af6c65dad64f355ab9bbfed8ad054d919b
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
resource/csdk/security/src/psinterface.c

index 60da739..04a67ac 100644 (file)
@@ -576,6 +576,7 @@ OCStackResult ResetSecureResourceInPS(void)
         }
 
         // Gets each secure virtual resource from the reset profile
+        if (NULL != resetPfCbor)
         {
             CborParser parser;  // will be initialized in |cbor_parser_init|
             CborValue cbor;     // will be initialized in |cbor_parser_init|