diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2012-02-14 16:51:35 -0500 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2012-02-14 16:51:35 -0500 |
commit | 5ea41495ab07f449339b03014c1513429b7625ac (patch) | |
tree | ccec7a1e96a54fa718ce2783816c6e18b750c385 /OpenSSL/ssl/connection.c | |
parent | fef5c4b8a31f2ed7d641b2e75ad22e2c5920ed32 (diff) | |
download | pyopenssl-5ea41495ab07f449339b03014c1513429b7625ac.tar.gz |
I don't always read OpenSSL source, but when I do I WISH I WERE DEAD
Diffstat (limited to 'OpenSSL/ssl/connection.c')
-rwxr-xr-x | OpenSSL/ssl/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSSL/ssl/connection.c b/OpenSSL/ssl/connection.c index f7994a3..ebbe39f 100755 --- a/OpenSSL/ssl/connection.c +++ b/OpenSSL/ssl/connection.c @@ -1300,7 +1300,8 @@ ssl_Connection_set_session(ssl_ConnectionObj *self, PyObject *args) { } if (SSL_set_session(self->ssl, session->session) == 0) { - /* XXX Under what conditions does this fail? I have no idea. + /* The only case which leads to this seems to be a mismatch, between + * this connection and the session, of the SSL method. */ exception_from_error_queue(ssl_Error); return NULL; |