* then %GNUTLS_E_GOT_APPLICATION_DATA or
* %GNUTLS_E_WARNING_ALERT_RECEIVED may be returned. Note that these
* are non fatal errors, only in the specific case of a rehandshake.
- * Their meaning is that the client rejected the rehandshake request.
+ * Their meaning is that the client rejected the rehandshake request or
+ * in the case of %GNUTLS_E_GOT_APPLICATION_DATA it might also mean that
+ * some data were pending.
*
* Returns: %GNUTLS_E_SUCCESS on success, otherwise an error.
*
if (session->security_parameters.entity == GNUTLS_SERVER)
{
gnutls_assert ();
+ ret = _gnutls_record_buffer_put (recv_type, session, (void *) data, data_size);
+ if (ret < 0)
+ {
+ gnutls_assert();
+ return ret;
+ }
return GNUTLS_E_REHANDSHAKE;
}