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

[reSIProcate] tuple.cxx and tuple.hxx confusing/bug?


In the tuple.cxx, when call

 

Tuple::Tuple(const Data& printableAddr,

             int port,

             IpVersion ipVer,

             TransportType type,

             const Data& targetDomain) :

 

Only the m_anonv4 or  m_anonv6 get initialized, the mSockaddr is invalid.

But in tuple.hxx, getSockaddr() use mSockaddr as return value.

 

This will cause problem, I think inside Tuple::Tuple(…) we should copy m_anonv? to mSockAddr.

 

Roland