Commit 8b070ed1 authored by Pekka Pessi's avatar Pekka Pessi

tport_tls.c: su_home_new() already zeros the allocated memory

parent 7e8db812
......@@ -128,7 +128,6 @@ static
tls_t *tls_create(int type)
tls_t *tls = su_home_new(sizeof(*tls));
memset(((void *)tls) + sizeof(su_home_t), 0, sizeof(*tls) - sizeof(su_home_t));
if (tls)
tls->type = type == tls_master ? tls_master : tls_slave;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment