Explorar o código

Make sure that if sslize fails, we close the socket

Retallack Mark mark.retallack %!s(int64=7) %!d(string=hai) anos
pai
achega
03c05aa1e8
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/civetweb.c

+ 5 - 0
src/civetweb.c

@@ -17736,6 +17736,11 @@ worker_thread_run(struct worker_thread_args *thread_args)
 					conn->request_info.client_cert = 0;
 				}
 			}
+			else
+			{
+				/* make sure the connection is cleaned up on SSL failure */
+				close_connection(conn);
+			}
 #endif
 		} else {
 			/* process HTTP connection */