[reSIProcate] tuple.cxx and tuple.hxx confusing/bug?
Fischl jason
jason.fischl at gmail.com
Fri Jul 8 12:22:03 CDT 2005
m_anonv4, m_anonv6 and mSockaddr are all in a union together. This
means that they are overlayed together on the same memory. So copying
is not required.
Cheers
JAson
On 7/5/05, Roland Zheng <rzheng at ascendentsystems.com> wrote:
>
>
>
> 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
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
>
More information about the resiprocate-devel
mailing list