mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
nanocoap_sock: don't use return buffer for request
This commit is contained in:
parent
7213c0ad3e
commit
f6f5b13744
@ -369,9 +369,12 @@ static int _get_put_cb(void *arg, coap_pkt_t *pkt)
|
||||
|
||||
ssize_t nanocoap_sock_get(nanocoap_sock_t *sock, const char *path, void *buf, size_t len)
|
||||
{
|
||||
uint8_t *pktpos = buf;
|
||||
/* buffer for CoAP header */
|
||||
uint8_t buffer[CONFIG_NANOCOAP_BLOCK_HEADER_MAX];
|
||||
uint8_t *pktpos = buffer;
|
||||
|
||||
coap_pkt_t pkt = {
|
||||
.hdr = buf,
|
||||
.hdr = (void *)pktpos,
|
||||
};
|
||||
|
||||
struct iovec ctx = {
|
||||
|
Loading…
Reference in New Issue
Block a user