Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51095
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 23 Apr 2011 21:57:58 +0000 (21:57 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 23 Apr 2011 21:57:58 +0000 (21:57 +0000)
Don't trigger a NullPointerException when the SSL handshake fails with the HTTP-APR connector.
Patch provided by Mike Glazer.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1096244 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/AprEndpoint.java
webapps/docs/changelog.xml

index 6f4cb65..e26a938 100644 (file)
@@ -1681,6 +1681,7 @@ public class AprEndpoint extends AbstractEndpoint {
                         // Close socket and pool
                         destroySocket(socket.getSocket().longValue());
                         socket = null;
+                        return;
                     }
                     // Process the request from this socket
                     Handler.SocketState state = handler.process(socket);
index 28548fa..c1a5647 100644 (file)
         calculating connection and keep-alive timeouts for the HTTP BIO
         connector. (markt)
       </fix>
+      <fix>
+        <bug>51095</bug>: Don&apos;t trigger a NullPointerException when the SSL
+        handshake fails with the HTTP-APR connector. Patch provided by Mike
+        Glazer. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Jasper">