Fixed minor bug in simplified code.

This commit is contained in:
Jonathan Naylor
2018-03-22 19:24:59 +00:00
parent f1eb11a0d3
commit c54330e414
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ unsigned int CNXDNNetwork::read(unsigned char* data, unsigned int length, in_add
if (::memcmp(data, "NXDN", 4U) != 0)
return 0U;
if (length != 15 && length != 43)
if (len != 15 && len != 43)
return 0U;
if (m_debug)