Skip to content
Commit 5249e43e authored by Juha Heiskanen's avatar Juha Heiskanen Committed by Carles Cufí
Browse files

net: coap: Coap pending allocation fix



When sending 2 or more confirmable message before first one is
writed to socket all messages use same coap pending structure.
Now coap_pending_init() set data pointer which lock allocation
by each call.

Using data pointer for detecting free is more stable than timeout.
Timeout is initialized only before first socket send. Queued packet
may be triggered later than other and may cause that same block is
allocated multiple time.

Signed-off-by: default avatarJuha Heiskanen <juha.heiskanen@nordicsemi.no>
parent e6629abc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment