mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Merge pull request #1910 from embhorn/zd4324
Handle incomplete shutdown
This commit is contained in:
@@ -2563,6 +2563,9 @@ int wolfSSL_shutdown(WOLFSSL* ssl)
|
||||
} else if (ssl->options.closeNotify) {
|
||||
ssl->error = WOLFSSL_ERROR_SYSCALL; /* simulate OpenSSL behavior */
|
||||
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