diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index a25cfdd47c89a0376a6a7ec5ae296ebfa2b0e682..659ecf4e4b3cfe8362d1bae95782cda551276611 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -1732,10 +1732,9 @@ int ndisc_rcv(struct sk_buff *skb) return 0; } - memset(NEIGH_CB(skb), 0, sizeof(struct neighbour_cb)); - switch (msg->icmph.icmp6_type) { case NDISC_NEIGHBOUR_SOLICITATION: + memset(NEIGH_CB(skb), 0, sizeof(struct neighbour_cb)); ndisc_recv_ns(skb); break;