mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Handle incomplete shutdown
This commit is contained in:
@@ -2563,6 +2563,9 @@ int wolfSSL_shutdown(WOLFSSL* ssl)
|
|||||||
} else if (ssl->options.closeNotify) {
|
} else if (ssl->options.closeNotify) {
|
||||||
ssl->error = WOLFSSL_ERROR_SYSCALL; /* simulate OpenSSL behavior */
|
ssl->error = WOLFSSL_ERROR_SYSCALL; /* simulate OpenSSL behavior */
|
||||||
ret = WOLFSSL_SUCCESS;
|
ret = WOLFSSL_SUCCESS;
|
||||||
|
} else if ((ssl->error == WOLFSSL_ERROR_NONE) &&
|
||||||
|
(ret < WOLFSSL_SUCCESS)) {
|
||||||
|
ret = WOLFSSL_SHUTDOWN_NOT_DONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user