Skip to content

Commit 38556b9

Browse files
committed
Fix the ssl_errno value
1 parent c8bc49d commit 38556b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_ssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ PySSL_SetError(PySSLSocket *sslsock, int ret, const char *filename, int lineno)
667667
* zero return value to SSL_ERROR_SSL with a special error code. */
668668
if (ERR_GET_LIB(e) == ERR_LIB_SSL &&
669669
ERR_GET_REASON(e) == SSL_R_UNEXPECTED_EOF_WHILE_READING) {
670+
p = PY_SSL_ERROR_EOF;
670671
type = state->PySSLEOFErrorObject;
671672
errstr = "EOF occurred in violation of protocol";
672673
}

0 commit comments

Comments
 (0)