Use PyExc_OSError directly instead of grabbing it from the socket module API
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 7fee74c..36ce33f 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2334,7 +2334,7 @@
 
     /* Add symbols to module dict */
     PySSLErrorObject = PyErr_NewException("ssl.SSLError",
-                                          PySocketModule.error,
+                                          PyExc_OSError,
                                           NULL);
     if (PySSLErrorObject == NULL)
         return NULL;