[Freeswitch-svn] [commit] r8815 - freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src
Freeswitch SVN
anthm at freeswitch.org
Sat Jun 21 20:38:40 EDT 2008
Author: anthm
Date: Sat Jun 21 20:38:39 2008
New Revision: 8815
Modified:
freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/http.c
freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/server.c
Log:
fix missing initilization
Modified: freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/http.c
==============================================================================
--- freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/http.c (original)
+++ freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/http.c Sat Jun 21 20:38:39 2008
@@ -868,9 +868,11 @@
-----------------------------------------------------------------------------*/
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 */
endOfHeaders = false; /* Caller assures us there is at least one header */
Modified: freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/server.c
==============================================================================
--- freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/server.c (original)
+++ freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/server.c Sat Jun 21 20:38:39 2008
@@ -529,7 +529,7 @@
uint32_t const timeout,
bool * const keepAliveP) {
- TSession session;
+ TSession session = {0}; /* initilization, an afforadble alternative to random memory being misinterpreted! */
RequestInit(&session, connectionP);
More information about the Freeswitch-svn
mailing list