- In case that an error returns before deserialization is done
from socket buffer, the server calls processOne() repeatedly.
- To block this situation, we have to clear up all unread data
from socket buffer.
Change-Id: Ic73b07836d83af05719d41349bab78ce625ee821
retCode = AUTH_PASSWD_API_ERROR_SERVER_ERROR;
}
+ // Consumes remaining unread data from buffer
+ buffer.Pop();
+
//everything is OK, send return code and extra data
Serialization::Serialize(sendBuffer, retCode);