提交 85c73342 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix missing initilization

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8815 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f9e8a2e2
...@@ -868,9 +868,11 @@ readAndProcessHeaders(TSession * const sessionP, ...@@ -868,9 +868,11 @@ readAndProcessHeaders(TSession * const sessionP,
-----------------------------------------------------------------------------*/ -----------------------------------------------------------------------------*/
bool endOfHeaders; bool endOfHeaders;
assert(!sessionP->validRequest); /* Calling us doesn't make sense if there is already a valid request */
/* Calling us doesn't make sense if there is already a valid request */ if (sessionP->validRequest) {
return;
}
*httpErrorCodeP = 0; /* initial assumption */ *httpErrorCodeP = 0; /* initial assumption */
endOfHeaders = false; /* Caller assures us there is at least one header */ endOfHeaders = false; /* Caller assures us there is at least one header */
......
...@@ -529,7 +529,7 @@ processDataFromClient(TConn * const connectionP, ...@@ -529,7 +529,7 @@ processDataFromClient(TConn * const connectionP,
uint32_t const timeout, uint32_t const timeout,
bool * const keepAliveP) { bool * const keepAliveP) {
TSession session; TSession session = {0}; /* initilization, an afforadble alternative to random memory being misinterpreted! */
RequestInit(&session, connectionP); RequestInit(&session, connectionP);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论