git: 9front

Download patch

ref: 081a720a067029e5157952c49d0b9c1ac15564e5
parent: 07f02d583354ebc7df3f5890c594defc4dc26beb
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Feb 18 13:42:04 EST 2016

libsec: fix memset() size in tlsConnectionFree(), remove #include <bio.h>

--- a/sys/src/libsec/port/tlshand.c
+++ b/sys/src/libsec/port/tlshand.c
@@ -1,6 +1,5 @@
 #include <u.h>
 #include <libc.h>
-#include <bio.h>
 #include <auth.h>
 #include <mp.h>
 #include <libsec.h>
@@ -2203,7 +2202,7 @@
 	tlsSecClose(c->sec);
 	freebytes(c->sid);
 	freebytes(c->cert);
-	memset(c, 0, sizeof(c));
+	memset(c, 0, sizeof(*c));
 	free(c);
 }
 
--