mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-22 21:13:52 +01:00
nanocoap_sock: set more false if response was not blockwise
This commit is contained in:
parent
a5bc3cc069
commit
3ac258ccdf
@ -301,11 +301,10 @@ static int _block_cb(void *arg, coap_pkt_t *pkt)
|
|||||||
/* response was not block-wise */
|
/* response was not block-wise */
|
||||||
if (!coap_get_block2(pkt, &block2)) {
|
if (!coap_get_block2(pkt, &block2)) {
|
||||||
block2.offset = 0;
|
block2.offset = 0;
|
||||||
ctx->more = false;
|
block2.more = false;
|
||||||
} else {
|
|
||||||
ctx->more = block2.more;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx->more = block2.more;
|
||||||
return ctx->callback(ctx->arg, block2.offset, pkt->payload, pkt->payload_len, block2.more);
|
return ctx->callback(ctx->arg, block2.offset, pkt->payload, pkt->payload_len, block2.more);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user