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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user