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:
Jukka Rissanen 2016-05-23 16:38:18 +03:00
commit 6509f657ea

View file

@ -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;
}