提交 0a07ac4b authored 作者: Michael Jerris's avatar Michael Jerris

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
上级 c2f5696a
Wed Feb 11 10:12:26 CST 2009
Wed Feb 11 10:13:45 CST 2009
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论