summaryrefslogtreecommitdiff
path: root/samples/net/coaps_client/src/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/net/coaps_client/src/udp.c')
-rw-r--r--samples/net/coaps_client/src/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/net/coaps_client/src/udp.c b/samples/net/coaps_client/src/udp.c
index 1da593e84..b2c8e3799 100644
--- a/samples/net/coaps_client/src/udp.c
+++ b/samples/net/coaps_client/src/udp.c
@@ -58,12 +58,12 @@ int udp_tx(void *context, const unsigned char *buf, size_t size)
udp_ctx = ctx->net_ctx;
- send_buf = net_nbuf_get_tx(udp_ctx);
+ send_buf = net_nbuf_get_tx(udp_ctx, K_FOREVER);
if (!send_buf) {
return MBEDTLS_ERR_SSL_ALLOC_FAILED;
}
- rc = net_nbuf_append(send_buf, size, (uint8_t *) buf);
+ rc = net_nbuf_append(send_buf, size, (uint8_t *) buf, K_FOREVER);
if (!rc) {
return MBEDTLS_ERR_SSL_INTERNAL_ERROR;
}