diff options
Diffstat (limited to 'resource/csdk/stack/src/ocserverrequest.c')
-rw-r--r-- | resource/csdk/stack/src/ocserverrequest.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/resource/csdk/stack/src/ocserverrequest.c b/resource/csdk/stack/src/ocserverrequest.c index 9f8b0dc82..d2c6aee05 100644 --- a/resource/csdk/stack/src/ocserverrequest.c +++ b/resource/csdk/stack/src/ocserverrequest.c @@ -517,13 +517,6 @@ OCStackResult HandleSingleResponse(OCEntityHandlerResponse * ehResponse) OC_LOG(ERROR, TAG, "Error converting payload"); return result; } - - if(responseInfo.info.payloadSize > MAX_RESPONSE_LENGTH) - { - OICFree(responseInfo.info.payload); - OC_LOG(ERROR, TAG, "Payload too long!"); - return OC_STACK_INVALID_PARAM; - } } else { |