Remove redundant check from SSL_shutdown
[openssl.git] / ssl / ssl_lib.c
index 0674cb44af7fd49dfb6c272057e4adf8caee4050..ec852569b1994bd2909c53312f1d7d47a3e61920 100644 (file)
@@ -990,7 +990,7 @@ int SSL_shutdown(SSL *s)
         return -1;
     }
 
-    if ((s != NULL) && !SSL_in_init(s))
+    if (!SSL_in_init(s))
         return (s->method->ssl_shutdown(s));
     else
         return (1);