\r
(void)callback;\r
\r
- OCEntityHandlerResponse response;\r
- response.numSendVendorSpecificHeaderOptions = 0;\r
- memset(response.sendVendorSpecificHeaderOptions, 0,\r
- sizeof response.sendVendorSpecificHeaderOptions);\r
- memset(response.resourceUri, 0, sizeof response.resourceUri);\r
-\r
if (!entityHandlerRequest)\r
{\r
NS_LOG(ERROR, "Invalid request pointer");\r
{\r
NS_LOG_V(DEBUG, "Received unsupported method %d from client",\r
entityHandlerRequest->method);\r
- ehResult = OC_EH_OK;\r
+ ehResult = OC_EH_ERROR;\r
}\r
}\r
\r
- response.requestHandle = entityHandlerRequest->requestHandle;\r
- response.resourceHandle = entityHandlerRequest->resource;\r
- response.persistentBufferFlag = 0;\r
- response.ehResult = ehResult;\r
- response.payload = (OCPayload *) NULL;\r
-\r
- if (OCDoResponse(&response) != OC_STACK_OK)\r
- {\r
- NS_LOG(ERROR, "Fail to AccessPolicy send response");\r
- return NS_ERROR;\r
- }\r
-\r
NS_LOG(DEBUG, "NSEntityHandlerTopicCb - OUT");\r
return ehResult;\r
}\r