[sipxtapi] r1420 committed - Applied patch from Saab:...

2 views
Skip to first unread message

codesite...@google.com

unread,
Feb 7, 2011, 5:15:33 PM2/7/11
to sipxtapi...@googlegroups.com
Revision: 1420
Author: jaroslavl1
Date: Mon Feb 7 14:12:22 2011
Log: Applied patch from Saab:
- initializes response and canonical_name to NULL in lookup_SRV and
lookup_A. Don't know if it is really necesarry, but I was looking for odd
access violations.

http://code.google.com/p/sipxtapi/source/detail?r=1420

Modified:
/trunk/sipXtackLib/src/net/SipSrvLookup.cpp

=======================================
--- /trunk/sipXtackLib/src/net/SipSrvLookup.cpp Sun Jan 24 03:44:15 2010
+++ /trunk/sipXtackLib/src/net/SipSrvLookup.cpp Mon Feb 7 14:12:22 2011
@@ -538,8 +538,8 @@
const char* srcIp)
{
// To hold the return of res_query_and_parse.
- res_response* response;
- const char* canonical_name;
+ res_response* response = NULL;
+ const char* canonical_name = NULL;

// Construct buffer to hold the key string for the lookup:
// _service._protocol.domain
@@ -641,8 +641,8 @@
)
{
// To hold the return of res_query_and_parse.
- res_response* response;
- const char* canonical_name;
+ res_response* response = NULL;
+ const char* canonical_name = NULL;

// Make the query and parse the response.
SipSrvLookup::res_query_and_parse(domain, T_A, in_response,
canonical_name,

Reply all
Reply to author
Forward
0 new messages