Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core]Fix coredump when m_pCryptoControl is Null #1193

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8906,7 +8906,11 @@ std::pair<int, steady_clock::time_point> CUDT::packData(CPacket& w_packet)
// together with encrypting, and the packet should be sent as is, when rexmitting.
// It would be nice to research as to whether CSndBuffer::Block::m_iMsgNoBitset field
// isn't a useless redundant state copy. If it is, then taking the flags here can be removed.
kflg = m_pCryptoControl->getSndCryptoFlags();
if(m_pCryptoControl)
kyolong marked this conversation as resolved.
Show resolved Hide resolved
{
kflg = m_pCryptoControl->getSndCryptoFlags();
}

payload = m_pSndBuffer->readData((w_packet), (origintime), kflg);
if (payload)
{
Expand Down