Fix query handling for /oic/res
authorHabib Virji <habib.virji@samsung.com>
Thu, 24 Nov 2016 12:30:48 +0000 (12:30 +0000)
committerZiran Sun <ziran.sun@samsung.com>
Fri, 25 Nov 2016 14:55:46 +0000 (14:55 +0000)
commit12bdc75a64460eb1e87d150b770a305c64f59e87
treea2fafb363a98793e926b2bdc58b77b103e638c34
parent2ab9fce49f43d8c63b0aa49213f0e6a1e002a9b0
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/14757
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
resource/csdk/stack/src/ocresource.c