shithub: riscv

Download patch

ref: 0cad8a59ed8f077f75900c563e0be0b9e973da07
parent: 7f2599254a29c956ac3cdbfc28792a8290312c13
author: cinap_lenrek <[email protected]>
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);
 }