Skip to content
Snippets Groups Projects
Commit df6b5f11 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka
Browse files

fix cmdu_ackq_dequeue crash for NULL cookie

parent e43f85a5
No related branches found
No related tags found
1 merge request!37fix cmdu_ackq_dequeue crash for NULL cookie
Pipeline #36008 passed
......@@ -317,7 +317,8 @@ int cmdu_ackq_dequeue(void *cmdu_q, uint16_t type, uint16_t mid, uint8_t *src, v
/* After returning cookie back to user, we can safely delete the msg */
*cookie = msg->cookie;
if (cookie)
*cookie = msg->cookie;
msg->cookie = NULL;
cmdu_ackq_delete_msg(q, msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment