mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
internal.c:reset input/processReply state if exiting after DoAlert()
This commit is contained in:
@@ -17708,8 +17708,12 @@ int ProcessReplyEx(WOLFSSL* ssl, int allowSocketErr)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
/* catch warnings that are handled as errors */
|
/* catch warnings that are handled as errors */
|
||||||
if (type == close_notify)
|
if (type == close_notify) {
|
||||||
|
ssl->buffers.inputBuffer.idx =
|
||||||
|
ssl->buffers.inputBuffer.length;
|
||||||
|
ssl->options.processReply = doProcessInit;
|
||||||
return ssl->error = ZERO_RETURN;
|
return ssl->error = ZERO_RETURN;
|
||||||
|
}
|
||||||
|
|
||||||
if (type == decrypt_error)
|
if (type == decrypt_error)
|
||||||
return FATAL_ERROR;
|
return FATAL_ERROR;
|
||||||
|
Reference in New Issue
Block a user