Fix M17 bug spotted by nostar.

This commit is contained in:
Jonathan Naylor
2020-11-13 09:24:37 +00:00
parent bb5e20538d
commit 021c0fea4d
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ bool CM17Network::open()
bool CM17Network::write(const unsigned char* data)
{
if (m_addrLen != 0U)
if (m_addrLen == 0U)
return false;
assert(data != NULL);