summaryrefslogtreecommitdiff
path: root/samples/net/zoap_client/src/zoap-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/net/zoap_client/src/zoap-client.c')
-rw-r--r--samples/net/zoap_client/src/zoap-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/net/zoap_client/src/zoap-client.c b/samples/net/zoap_client/src/zoap-client.c
index 984afa451..6e12077a2 100644
--- a/samples/net/zoap_client/src/zoap-client.c
+++ b/samples/net/zoap_client/src/zoap-client.c
@@ -173,13 +173,13 @@ static void event_iface_up(struct net_mgmt_event_callback *cb,
k_delayed_work_init(&retransmit_work, retransmit_request);
- buf = net_nbuf_get_tx(context);
+ buf = net_nbuf_get_tx(context, K_FOREVER);
if (!buf) {
printk("Unable to get TX buffer, not enough memory.\n");
return;
}
- frag = net_nbuf_get_data(context);
+ frag = net_nbuf_get_data(context, K_FOREVER);
if (!frag) {
printk("Unable to get DATA buffer, not enough memory.\n");
return;