Fix for crash at FindResourceByUri(). (#629) 02/218802/1
authorsenthil.gs@samsung.com <senthil.gs@samsung.com>
Wed, 27 Nov 2019 05:45:02 +0000 (11:15 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 28 Nov 2019 07:28:37 +0000 (16:28 +0900)
commit70fe9239d3c115e636410da4629f5105f72d2f41
treea493744e184ab847a1652f2fc9474fee2d93938c
parent49515e2825ea7997159ab81308ff3dae771d72b6
Fix for crash at FindResourceByUri(). (#629)

NULL check was not there before accessing "pointer->uri" due to which segmentation fault has occurred.
So NULL check is done at two different places.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/629
(cherry-picked from 727d5f58b67d83d3c82452b0afb7781bba59ec81)

Change-Id: I77878da7f89858235feafbc7b25a4e1fef39a52a
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
resource/csdk/stack/src/ocresource.c
resource/csdk/stack/src/ocstack.c