[IOT-1969] Removed unwanted check 85/18685/4
authorRandeep Singh <randeep.s@samsung.com>
Tue, 11 Apr 2017 08:16:28 +0000 (13:46 +0530)
committerRandeep Singh <randeep.s@samsung.com>
Mon, 8 May 2017 04:01:49 +0000 (04:01 +0000)
Change-Id: I3f3e140488a4da4f392edff065a631f1a717698e
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18685
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
resource/csdk/security/src/secureresourcemanager.c

index f3995ee..d08cd11 100644 (file)
@@ -151,7 +151,7 @@ void SetResourceUriAndType(SRMRequestContext_t *context)
     {
         position = strlen(context->requestInfo->info.resourceUri);
     }
-    if (MAX_URI_LENGTH < position  || 0 > position)
+    if (MAX_URI_LENGTH < position)
     {
         OIC_LOG(ERROR, TAG, "Incorrect URI length.");
         return;