net: Clear the connection pointer when net_buf is allocated
This fixes "No matching connection found" error when a packet is received. Change-Id: I9f9bba73f9858a9a3a45de26abd378d7c48aa9a7 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
09a0c2f619
commit
6509f657ea
1 changed files with 1 additions and 0 deletions
|
@ -303,6 +303,7 @@ static struct net_buf *ip_buf_get(enum ip_buf_type type,
|
|||
}
|
||||
|
||||
ip_buf_context(buf) = context;
|
||||
uip_set_conn(buf) = NULL;
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue