[IOT-1843] Reject unsecure request for unknown resource 79/19479/3
authorNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 1 May 2017 04:39:39 +0000 (21:39 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Tue, 2 May 2017 05:39:09 +0000 (05:39 +0000)
commit163785abfce506affedc6f6c15c82ceb7612e1bf
treeeb305ba75148b58f1d5823a74e717b7a554134ba
parentb4946d15674b76ac52ae630ef4727ac97507b6e3
[IOT-1843] Reject unsecure request for unknown resource

Previously, a null return from FindResourceByUri() may have resulted
in Unsecure Channel CREATE access to an OC_SECURE resource.  Until
the Policy Engine is updated to comprehend conntype access this
hole should be closed.

Change-Id: I4dbba12b108b103704cc931b3f03ef096e2ffc48
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19479
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
resource/csdk/security/src/secureresourcemanager.c