You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe there is a bug when using sendReqAck if an empty ACK packet is received from the network.
In Sodaq_RN2483::onMacRC() if the ACK packet doesn't contain any payload the last token will be a NULL pointer and subsequently _inputBuffer[inputIndex] will fail.
I propose to add a NULL check after the last strtok and return NoError in such cases.
// payloadtoken=strtok(NULL, " "); // until end of stringif (!token) {
debugPrintLn("[onMacRX]: packet contains no payload.");
returnNoError;
}
The text was updated successfully, but these errors were encountered:
I believe there is a bug when using sendReqAck if an empty ACK packet is received from the network.
In
Sodaq_RN2483::onMacRC()
if the ACK packet doesn't contain any payload the last token will be a NULL pointer and subsequently_inputBuffer[inputIndex]
will fail.I propose to add a NULL check after the last strtok and return NoError in such cases.
The text was updated successfully, but these errors were encountered: