]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet6/ipcomp_input.c
xnu-1504.9.17.tar.gz
[apple/xnu.git] / bsd / netinet6 / ipcomp_input.c
index 3ce9ba47424b72fca8b5f5d5bf4128d53604c825..c9473dd8bf722b64ff043f826cc4e61921dffbb2 100644 (file)
@@ -104,7 +104,7 @@ ipcomp4_input(struct mbuf *m, int off)
        }
 
        md = m_pulldown(m, off, sizeof(*ipcomp), NULL);
-       if (!m) {
+       if (!md) {
                m = NULL;       /*already freed*/
                ipseclog((LOG_DEBUG, "IPv4 IPComp input: assumption failed "
                    "(pulldown failure)\n"));
@@ -253,7 +253,7 @@ ipcomp6_input(mp, offp)
        off = *offp;
 
        md = m_pulldown(m, off, sizeof(*ipcomp), NULL);
-       if (!m) {
+       if (!md) {
                m = NULL;       /*already freed*/
                ipseclog((LOG_DEBUG, "IPv6 IPComp input: assumption failed "
                    "(pulldown failure)\n"));