< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] resiprocate v1.2.3: Second nameserver is bogus


running resiprocate v1.2.3:

INFO | 20080228-114224.335 |  | RESIP:DNS | 3077805760 | dns/AresDns.cxx:114 | 
DNS initialization: found  2 name servers
INFO | 20080228-114224.336 |  | RESIP:DNS | 3077805760 | dns/AresDns.cxx:117 |  
name server: 192.168.1.220
INFO | 20080228-114224.336 |  | RESIP:DNS | 3077805760 | dns/AresDns.cxx:117 |  
name server: 14.0.0.0


The second nameserver is bogus, and my resolv.conf file looks like this:

nameserver 192.168.1.220
nameserver 192.168.1.222


Also, when running under valgrind I get the following error:


INFO | 20080228-111229.926 |  | RESIP:DNS | 16384 | dns/AresDns.cxx:114 | DNS 
initialization: found  2 name servers
INFO | 20080228-111230.088 |  | RESIP:DNS | 16384 | dns/AresDns.cxx:117 |  name 
server: 192.168.1.220
==20900== Use of uninitialised value of size 4
==20900==    at 0x465DDA9: _itoa_word (_itoa.c:191)
==20900==    by 0x4661CF1: vfprintf (vfprintf.c:1541)
==20900==    by 0x467ACEA: vsprintf (iovsprintf.c:46)
==20900==    by 0x4667E1D: sprintf (sprintf.c:34)
==20900==    by 0x46EAFF2: inet_ntop4 (inet_ntop.c:99)
==20900==    by 0x46EB075: inet_ntop (inet_ntop.c:67)
==20900==    by 0x4424DF7: resip::DnsUtil::inet_ntop(int, void const*, char*, 
unsigned) (DnsUtil.cxx:483)
==20900==    by 0x4424E51: resip::DnsUtil::inet_ntop(in_addr const&) 
(DnsUtil.cxx:211)
==20900== by 0x444056A: resip::AresDns::init(std::vector<resip::GenericIPAddress, std::allocator<resip::GenericIPAddress> > const&, void (*)(int, int, char const*, int), int, int, unsigned) (AresDns.cxx:117) ==20900== by 0x4449143: resip::DnsStub::DnsStub(std::vector<resip::GenericIPAddress, std::allocator<resip::GenericIPAddress> > const&, void (*)(int, int, char const*, int)) (DnsStub.cxx:81) ==20900== by 0x42F456E: resip::SipStack::SipStack(resip::Security*, std::vector<resip::GenericIPAddress, std::allocator<resip::GenericIPAddress> > const&, resip::AsyncProcessHandler*, bool, void (*)(int, int, char const*, int), resip::Compression*) (SipStack.cxx:68)
==20900==    by 0x40406BA: __static_initialization_and_destruction_0(int, int) 
(sip.cc:13)




/alfred