OIC_LOG(DEBUG, TAG, "M bit is 0");
blockWiseStatus = CA_OPTION2_LAST_BLOCK;
}
+ else if(CA_BLOCK_RECEIVED_ALREADY == blockWiseStatus)// If already received no need to update block option items.
+ {
+ OIC_LOG(DEBUG, TAG, "Already Received : M bit is 1");
+ blockWiseStatus = CA_OPTION2_RESPONSE;
+ }
else
{
- if (CA_BLOCK_UNKNOWN == blockWiseStatus ||
- CA_BLOCK_RECEIVED_ALREADY == blockWiseStatus)
+ if (CA_BLOCK_UNKNOWN == blockWiseStatus)
{
OIC_LOG(DEBUG, TAG, "M bit is 1");
blockWiseStatus = CA_OPTION2_RESPONSE;