修复忘记初始化tailq的bug

This commit is contained in:
zhengchao
2018-10-16 21:30:52 +08:00
parent 1723fa1029
commit 00a0ec675a

View File

@@ -29,6 +29,7 @@ int http_connection_entry_open(const struct tfe_stream * stream, unsigned int th
{
struct http_connection_private * ht_conn = ALLOC(struct http_connection_private, 1);
TAILQ_INIT(&ht_conn->hs_private_list);
TAILQ_INIT(&ht_conn->hs_private_orphan_list);
ht_conn->stream = stream;
*pme = (void *) ht_conn;
return 0;