Commit 05d9b30f authored by roel0's avatar roel0

Fix coverity issue (152508 Dereference after null check)

parent 1210bdcd
......@@ -1392,7 +1392,7 @@ int pico_ipv6_frame_push(struct pico_frame *f, struct pico_ip6 *src, struct pico
goto push_final;
}
if (pico_ipv6_is_localhost(dst->addr)) {
if (dst && pico_ipv6_is_localhost(dst->addr)) {
f->dev = pico_get_device("loop");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment