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
410b9887
Commit
410b9887
authored
Sep 12, 2016
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27866: Fix refleak in cipher_to_dict()
parent
52d61e48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
Modules/_ssl.c
Modules/_ssl.c
+1
-12
No files found.
Modules/_ssl.c
View file @
410b9887
...
...
@@ -1587,12 +1587,6 @@ cipher_to_dict(const SSL_CIPHER *cipher)
int
aead
,
nid
;
const
char
*
skcipher
=
NULL
,
*
digest
=
NULL
,
*
kx
=
NULL
,
*
auth
=
NULL
;
#endif
PyObject
*
retval
;
retval
=
PyDict_New
();
if
(
retval
==
NULL
)
{
goto
error
;
}
/* can be NULL */
cipher_name
=
SSL_CIPHER_get_name
(
cipher
);
...
...
@@ -1616,7 +1610,7 @@ cipher_to_dict(const SSL_CIPHER *cipher)
auth
=
nid
!=
NID_undef
?
OBJ_nid2ln
(
nid
)
:
NULL
;
#endif
ret
val
=
Py_BuildValue
(
ret
urn
Py_BuildValue
(
"{sksssssssisi"
#if OPENSSL_VERSION_1_1
"sOssssssss"
...
...
@@ -1636,11 +1630,6 @@ cipher_to_dict(const SSL_CIPHER *cipher)
"auth"
,
auth
#endif
);
return
retval
;
error:
Py_XDECREF
(
retval
);
return
NULL
;
}
#endif
...
...
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