1
0
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:
Benjamin Valentin 2022-04-15 15:24:42 +02:00
parent a5bc3cc069
commit 3ac258ccdf

View File

@ -301,11 +301,10 @@ static int _block_cb(void *arg, coap_pkt_t *pkt)
/* response was not block-wise */
if (!coap_get_block2(pkt, &block2)) {
block2.offset = 0;
ctx->more = false;
} else {
ctx->more = block2.more;
block2.more = false;
}
ctx->more = block2.more;
return ctx->callback(ctx->arg, block2.offset, pkt->payload, pkt->payload_len, block2.more);
}