Mon Jan 5 06:42:09 CST 2009 Pekka Pessi <first.last@nokia.com>

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



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11772 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-11 16:14:05 +00:00
parent c2f5696a8a
commit 0a07ac4b16
2 changed files with 1 additions and 2 deletions

View File

@ -1 +1 @@
Wed Feb 11 10:12:26 CST 2009
Wed Feb 11 10:13:45 CST 2009

View File

@ -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;