mirror of
https://github.com/espressif/openthread.git
synced 2026-10-18 05:28:10 +00:00
Fix the error check for src/dst address get in Frame::ToInfoString() (#1633)
This commit is contained in:
committed by
Jonathan Hui
parent
384d38f8e8
commit
bd18c0f7f8
@@ -1087,12 +1087,12 @@ const char *Frame::ToInfoString(char *aBuf, uint16_t aSize)
|
||||
break;
|
||||
}
|
||||
|
||||
if (GetSrcAddr(src) == kThreadError_None)
|
||||
if (GetSrcAddr(src) != kThreadError_None)
|
||||
{
|
||||
src.mLength = 0;
|
||||
}
|
||||
|
||||
if (GetDstAddr(dst) == kThreadError_None)
|
||||
if (GetDstAddr(dst) != kThreadError_None)
|
||||
{
|
||||
dst.mLength = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user