[IOT-2610] CRL empty query fix
authorAleksey Volkov <a.volkov@samsung.com>
Wed, 16 Aug 2017 09:38:49 +0000 (12:38 +0300)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Thu, 17 Aug 2017 23:35:44 +0000 (23:35 +0000)
Don't return an error if the query string is empty or has unknown parameters.

Change-Id: I96aca3983a446a97ed695552d1a213bfa1700b3e
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21959
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
resource/csdk/security/src/crlresource.c

index 5325f7d..a7f7742 100644 (file)
@@ -473,7 +473,7 @@ static bool ValidateQuery(const char * query)
         }
     }
 
-    return false;
+    return true;
 }
 
 static OCEntityHandlerResult HandleCRLGetRequest(const OCEntityHandlerRequest *ehRequest)