@@ -169,7 +169,7 @@ static inline bool ProtocolSendMessage(
169
169
* @param conn The SSL connection object
170
170
* @param msg The message receive buffer (must be PROTOCOL_MESSAGE_SIZE bytes
171
171
* large)
172
- * @param len The length of the reveived message
172
+ * @param len The length of the received message
173
173
* @param eof Is set to true if this was the last message in the transaction
174
174
* @return true on success, otherwise false
175
175
*
@@ -223,10 +223,11 @@ static bool ProtocolRecvMessage(SSL *conn, char *msg, size_t *len, bool *eof)
223
223
/* The TLSRecv() function's doc string says that the returned value
224
224
* may be less than the requested length if the other side completed a
225
225
* send with less bytes. I take it that this means that there is no
226
- * short reads/recvs. Futhermore, TLSSend() says that its return value
227
- * is always equal to the requested length as long as TLS is setup
228
- * correctly. I take it that the same is true for TLSRecv(). Hence, we
229
- * will interpret a shorter read than what we expect as an error. */
226
+ * short reads/recvs. Furthermore, TLSSend() says that its return
227
+ * value is always equal to the requested length as long as TLS is
228
+ * setup correctly. I take it that the same is true for TLSRecv().
229
+ * Hence, we will interpret a shorter read than what we expect as an
230
+ * error. */
230
231
ret = TLSRecv (conn , recv_buffer , * len );
231
232
if (ret != * len )
232
233
{
0 commit comments