Re: Fix memory leak in LibreSSL/tls_conninfo_free()

2017-01-09 Thread Shuo Chen
On Mon, Jan 9, 2017 at 7:31 AM, Joel Sing <j...@sing.id.au> wrote: > On Sunday 08 January 2017 07:59:34 Shuo Chen wrote: >> Valgrind finds out that conninfo->servername is not free()d by >> tls_conninfo_free(). >> >> Here's a quick fix. > > Committed, thanks! Thank you!

Fix busy-looping in netcat's TLS handshaking

2017-01-07 Thread Shuo Chen
(Resource temporarily unavailable) I added a handshake() function and replaced busy-looping with poll()ing. Regards, Shuo Chen diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c @@ -713,21 +713,41 @@ unix_bind(char *path,