]> granicus.if.org Git - python/commitdiff
_ssl.c: strip trailing spaces
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 24 Jun 2013 22:44:31 +0000 (00:44 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 24 Jun 2013 22:44:31 +0000 (00:44 +0200)
Modules/_ssl.c

index 4208cb098c1fa702b6d343fc11167d1bf7f36f17..1d7ddcbf69a655b1369cdfb8b16125cc5cf619d4 100644 (file)
@@ -205,7 +205,7 @@ typedef struct {
     int npn_protocols_len;
 #endif
 #ifndef OPENSSL_NO_TLSEXT
-    PyObject *set_hostname; 
+    PyObject *set_hostname;
 #endif
 } PySSLContext;
 
@@ -1810,7 +1810,7 @@ context_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
     self->npn_protocols = NULL;
 #endif
 #ifndef OPENSSL_NO_TLSEXT
-    self->set_hostname = NULL; 
+    self->set_hostname = NULL;
 #endif
     /* Defaults */
     SSL_CTX_set_verify(self->ctx, SSL_VERIFY_NONE, NULL);
@@ -2463,7 +2463,7 @@ _servername_callback(SSL *s, int *al, void *args)
     if (ssl_socket == Py_None) {
         goto error;
     }
+
     if (servername == NULL) {
         result = PyObject_CallFunctionObjArgs(ssl_ctx->set_hostname, ssl_socket,
                                               Py_None, ssl_ctx, NULL);