git: 9front

Download patch

ref: 03afdf7c06c8086a67840accdbd7842d375d6cf3
parent: cb54385ece6f95bc87b883596fa3bce1c81fc468
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Jan 27 05:56:56 EST 2015

wpa: do not forward alert tls records, close connection

--- a/sys/src/cmd/aux/wpa.c
+++ b/sys/src/cmd/aux/wpa.c
@@ -797,6 +797,10 @@
 			}
 		}
 
+		/* do not forward alert, close connection */
+		if(w[0] == 21)
+			break;
+
 		/* check if we'r still the tunnel for this connection */
 		if(conn->tunn != tunn)
 			break;
--