Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
81b9ecd2
Kaydet (Commit)
81b9ecd2
authored
Agu 16, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix corner cases in the management of server_hostname (closes #27773)
üst
b1c6bdc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
NEWS
Misc/NEWS
+2
-0
_ssl.c
Modules/_ssl.c
+4
-6
No files found.
Misc/NEWS
Dosyayı görüntüle @
81b9ecd2
...
@@ -34,6 +34,8 @@ Core and Builtins
...
@@ -34,6 +34,8 @@ Core and Builtins
Library
Library
-------
-------
-
Issue
#
27773
:
Correct
some
memory
management
errors
server_hostname
in
_ssl
.
wrap_socket
().
-
Issue
#
26750
:
unittest
.
mock
.
create_autospec
()
now
works
properly
for
-
Issue
#
26750
:
unittest
.
mock
.
create_autospec
()
now
works
properly
for
subclasses
of
property
()
and
other
data
descriptors
.
subclasses
of
property
()
and
other
data
descriptors
.
...
...
Modules/_ssl.c
Dosyayı görüntüle @
81b9ecd2
...
@@ -487,7 +487,6 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
...
@@ -487,7 +487,6 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
{
{
PySSLSocket
*
self
;
PySSLSocket
*
self
;
SSL_CTX
*
ctx
=
sslctx
->
ctx
;
SSL_CTX
*
ctx
=
sslctx
->
ctx
;
PyObject
*
hostname
;
long
mode
;
long
mode
;
self
=
PyObject_New
(
PySSLSocket
,
&
PySSLSocket_Type
);
self
=
PyObject_New
(
PySSLSocket
,
&
PySSLSocket_Type
);
...
@@ -501,16 +500,16 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
...
@@ -501,16 +500,16 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
self
->
shutdown_seen_zero
=
0
;
self
->
shutdown_seen_zero
=
0
;
self
->
handshake_done
=
0
;
self
->
handshake_done
=
0
;
self
->
owner
=
NULL
;
self
->
owner
=
NULL
;
self
->
server_hostname
=
NULL
;
if
(
server_hostname
!=
NULL
)
{
if
(
server_hostname
!=
NULL
)
{
hostname
=
PyUnicode_Decode
(
server_hostname
,
strlen
(
server_hostname
),
PyObject
*
hostname
=
PyUnicode_Decode
(
server_hostname
,
strlen
(
server_hostname
),
"idna"
,
"strict"
);
"idna"
,
"strict"
);
if
(
hostname
==
NULL
)
{
if
(
hostname
==
NULL
)
{
Py_DECREF
(
self
);
Py_DECREF
(
self
);
return
NULL
;
return
NULL
;
}
}
self
->
server_hostname
=
hostname
;
self
->
server_hostname
=
hostname
;
}
else
}
self
->
server_hostname
=
NULL
;
Py_INCREF
(
sslctx
);
Py_INCREF
(
sslctx
);
...
@@ -563,7 +562,6 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
...
@@ -563,7 +562,6 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
self
->
Socket
=
PyWeakref_NewRef
((
PyObject
*
)
sock
,
NULL
);
self
->
Socket
=
PyWeakref_NewRef
((
PyObject
*
)
sock
,
NULL
);
if
(
self
->
Socket
==
NULL
)
{
if
(
self
->
Socket
==
NULL
)
{
Py_DECREF
(
self
);
Py_DECREF
(
self
);
Py_XDECREF
(
self
->
server_hostname
);
return
NULL
;
return
NULL
;
}
}
}
}
...
...
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