Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1e37e9ef
Commit
1e37e9ef
authored
Jan 12, 2013
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
SSLContext.load_dh_params() now properly closes the input file.
parents
14d080ea
457a2292
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
Misc/NEWS
Misc/NEWS
+2
-0
Modules/_ssl.c
Modules/_ssl.c
+1
-0
No files found.
Misc/NEWS
View file @
1e37e9ef
...
...
@@ -217,6 +217,8 @@ Core and Builtins
Library
-------
- SSLContext.load_dh_params() now properly closes the input file.
- Issue #16829: IDLE printing no longer fails if there are spaces or other
special characters in the file path.
...
...
Modules/_ssl.c
View file @
1e37e9ef
...
...
@@ -2248,6 +2248,7 @@ load_dh_params(PySSLContext *self, PyObject *filepath)
errno
=
0
;
PySSL_BEGIN_ALLOW_THREADS
dh
=
PEM_read_DHparams
(
f
,
NULL
,
NULL
,
NULL
);
fclose
(
f
);
PySSL_END_ALLOW_THREADS
if
(
dh
==
NULL
)
{
if
(
errno
!=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment