NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/44890: mtod is assigned twice.



>Number:         44890
>Category:       kern
>Synopsis:       mtod is assigned twice.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 21 06:40:05 +0000 2011
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
mtod is assigned twice in mld_input.
>How-To-Repeat:

>Fix:
diff -u -r1.51 mld6.c
--- sys/netinet6/mld6.c 4 Aug 2009 22:04:23 -0000       1.51
+++ sys/netinet6/mld6.c 21 Apr 2011 05:00:34 -0000
@@ -324,7 +324,7 @@
 void
 mld_input(struct mbuf *m, int off)
 {
-       struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
+       struct ip6_hdr *ip6;
        struct mld_hdr *mldh;
        struct ifnet *ifp = m->m_pkthdr.rcvif;
        struct in6_multi *in6m = NULL;



Home | Main Index | Thread Index | Old Index