mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-30 14:06:04 +00:00
remove assert on uninit mem
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8865 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
35dc909cf6
commit
ebe53e826c
@ -426,20 +426,15 @@ readRequestHeader(TSession * const sessionP,
|
|||||||
are not able to read the request header, or 0 if we can.
|
are not able to read the request header, or 0 if we can.
|
||||||
If we can't, *requestLineP is meaningless.
|
If we can't, *requestLineP is meaningless.
|
||||||
-----------------------------------------------------------------------------*/
|
-----------------------------------------------------------------------------*/
|
||||||
char * line;
|
char * line = NULL;
|
||||||
bool error;
|
bool error = FALSE;
|
||||||
bool endOfHeaders;
|
bool endOfHeaders = FALSE;
|
||||||
|
|
||||||
skipToNonemptyLine(sessionP->conn, deadline, &error);
|
skipToNonemptyLine(sessionP->conn, deadline, &error);
|
||||||
|
|
||||||
if (!error)
|
if (!error)
|
||||||
readHeader(sessionP->conn, deadline, &endOfHeaders, &line, &error);
|
readHeader(sessionP->conn, deadline, &endOfHeaders, &line, &error);
|
||||||
|
|
||||||
/* End of headers is delimited by an empty line, and we skipped all
|
|
||||||
the empty lines above, so we could not have encountered EOH:
|
|
||||||
*/
|
|
||||||
assert(!endOfHeaders);
|
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
*httpErrorCodeP = 408; /* Request Timeout */
|
*httpErrorCodeP = 408; /* Request Timeout */
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user