diff --git a/srtcore/core.cpp b/srtcore/core.cpp index a7d9bf236..95fd5d2a9 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -4218,6 +4218,9 @@ bool CUDT::createCrypter(HandshakeSide side, bool bidirectional) if ( m_pCryptoControl ) return true; + // Write back this value, when it was just determined. + m_SrtHsSide = side; + m_pCryptoControl.reset(new CCryptoControl(this, m_SocketID)); // XXX These below are a little bit controversial.