Skip to content

Commit aad7d47

Browse files
committed
Switch get_sigalgs to use DecodeFSDefault instead of DecodeASCII.
1 parent 0c07131 commit aad7d47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/_ssl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6356,8 +6356,7 @@ _ssl_get_sigalgs_impl(PyObject *module)
63566356
return NULL;
63576357
}
63586358

6359-
if ((sigalgs_str = PyUnicode_DecodeASCII(sigalgs, strlen(sigalgs),
6360-
"strict")) == NULL) {
6359+
if ((sigalgs_str = PyUnicode_DecodeFSDefault(sigalgs)) == NULL) {
63616360
OPENSSL_free((void *)sigalgs);
63626361
return NULL;
63636362
}

0 commit comments

Comments
 (0)