diff --git a/src/engine/helper/HL_HepSupport.cpp b/src/engine/helper/HL_HepSupport.cpp index c394d9f5..23c33cd7 100644 --- a/src/engine/helper/HL_HepSupport.cpp +++ b/src/engine/helper/HL_HepSupport.cpp @@ -103,8 +103,8 @@ bool Packet::parseV3(const ByteBuffer& packet) if (!sourceAddr4.isEmpty()) mSourceAddress = sourceAddr4; else - if (!sourceAddr6.isEmpty()) - mSourceAddress = sourceAddr6; + if (!sourceAddr6.isEmpty()) + mSourceAddress = sourceAddr6; if (!mSourceAddress.isEmpty()) mSourceAddress.setPort(sourcePort); @@ -112,8 +112,8 @@ bool Packet::parseV3(const ByteBuffer& packet) if (!destAddr4.isEmpty()) mDestinationAddress = destAddr4; else - if (!destAddr6.isEmpty()) - mDestinationAddress = destAddr6; + if (!destAddr6.isEmpty()) + mDestinationAddress = destAddr6; if (!mDestinationAddress.isEmpty()) mDestinationAddress.setPort(destPort); diff --git a/src/engine/media/MT_CodecList.h b/src/engine/media/MT_CodecList.h index 85ca57ce..404f7b71 100644 --- a/src/engine/media/MT_CodecList.h +++ b/src/engine/media/MT_CodecList.h @@ -108,6 +108,7 @@ public: #if defined(USE_RESIP_INTEGRATION) static Settings parseSdp(const std::list& codeclist); #endif + bool operator == (const Settings& rhs) const; };