* proper destination and remove "RM" coap header option before passing request / response to
* RI as this option will make no sense to either RI or application.
*/
- if (responseInfo->info.options)
- {
- RMUpdateInfo((CAHeaderOption_t **) &(responseInfo->info.options),
+ RMUpdateInfo((CAHeaderOption_t **) &(responseInfo->info.options),
(uint8_t *) &(responseInfo->info.numOptions),
(CAEndpoint_t *) endPoint);
- }
#endif
OCHandleResponse(endPoint, responseInfo);
{
OIC_LOG_V(ERROR, TAG, "HandleStackRequests failed. error: %d", requestResult);
- // Delete observer node if it is OBSERVE failure from app
- if (serverRequest.observationOption == OC_OBSERVE_REGISTER)
- {
- DeleteObserverUsingToken(requestInfo->info.token, requestInfo->info.tokenLength);
- }
-
CAResponseResult_t stackResponse =
OCToCAStackResult(requestResult, serverRequest.method);
* Put source in sender endpoint so that the next packet from application can be routed to
* proper destination and remove RM header option.
*/
- if (requestInfo->info.options)
- {
- RMUpdateInfo((CAHeaderOption_t **) &(requestInfo->info.options),
+ RMUpdateInfo((CAHeaderOption_t **) &(requestInfo->info.options),
(uint8_t *) &(requestInfo->info.numOptions),
(CAEndpoint_t *) endPoint);
- }
#ifdef ROUTING_GATEWAY
if (isEmptyMsg)