Browse Source

Merge pull request #630 from mretallack/master

Make sure that if sslize fails, we close the socket
bel2125 7 năm trước cách đây
mục cha
commit
a78b6dd5b9
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/civetweb.c

+ 5 - 0
src/civetweb.c

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