Skip to content

Commit

Permalink
Fixup allocation of resend buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kb2ma committed Nov 8, 2017
1 parent e46d9c8 commit 3de19fd
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 3de19fd

Please sign in to comment.