Bugfix/router mstp builds (#630)

* Fixed example app router-ipv6 to build under ports/win32

* Fixed example app router-mstp to build under ports/win32 with MinGW

* Added win32 builds of router-ipv6 and router-mstp to the Github pipeline
This commit is contained in:
Steve Karg
2024-04-30 13:52:00 -05:00
committed by GitHub
parent b90b14e5f6
commit 96222574f8
11 changed files with 221 additions and 210 deletions
+5 -3
View File
@@ -1466,13 +1466,15 @@ int bvlc6_decode_secure_bvll(uint8_t *pdu,
int bytes_consumed = 0;
uint16_t i = 0;
if (pdu && sbuf) {
if (pdu) {
if (sbuf_len) {
*sbuf_len = pdu_len;
}
if (pdu_len) {
if (pdu_len && sbuf && sbuf_size) {
for (i = 0; i < pdu_len; i++) {
sbuf[i] = pdu[i];
if (i < sbuf_size) {
sbuf[i] = pdu[i];
}
}
}
bytes_consumed = (int)pdu_len;