Fix query handling for /oic/res
authorHabib Virji <habib.virji@samsung.com>
Thu, 24 Nov 2016 12:30:48 +0000 (12:30 +0000)
committerPhil Coval <philippe.coval@osg.samsung.com>
Thu, 24 Nov 2016 18:09:05 +0000 (18:09 +0000)
commit3bdc51bd4129d15d4176f193b7ad47999e66ff25
tree7cb7cdf4021b1f867546cd61d513a89170a9f5fd
parentad2bfa447c31a54c92bb7b8be3e00614f339b320
Fix query handling for /oic/res

There was a mix up when query was supplied, it was only working if the interfaceQuery passed too. With just rt supplied,
it was returning all the resource. This patch fixes up the issue.

Change-Id: I980f0dd73fafdadd3d1dabae5edf024ac256f95c
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14759
Reviewed-by: Mushfiqul Islam <i.mushfiq@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
resource/csdk/stack/src/ocresource.c