Skip to content

Commit

Permalink
Fix for working with GCOAP_RESEND_BUFS_MAX > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
nmeum committed Nov 3, 2017
1 parent 8556316 commit eb65791
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/application_layer/gcoap/gcoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ size_t gcoap_req_send2(const uint8_t *buf, size_t len,
memo->msg.data.pdu_buf = &_coap_state.resend_bufs[i*GCOAP_PDU_BUF_SIZE];
memcpy(memo->msg.data.pdu_buf, buf, GCOAP_PDU_BUF_SIZE);
memo->msg.data.pdu_len = len;
break;
}
}
if (memo->msg.data.pdu_buf) {
Expand Down

0 comments on commit eb65791

Please sign in to comment.