]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netat/ddp_usrreq.c
xnu-1456.1.26.tar.gz
[apple/xnu.git] / bsd / netat / ddp_usrreq.c
index fd6b8ab92ee31bbe3319ff56087e0bc32c40519a..17bddda8aa47608c469f023becb6e0f88bbc5f37 100644 (file)
@@ -185,6 +185,8 @@ int ddp_pru_send(struct socket *so, __unused int flags, struct mbuf *m,
        if (!(pcb->ddp_flags & DDPFLG_HDRINCL)) {
                /* prepend a DDP header */
                M_PREPEND(m, DDP_X_HDR_SIZE, M_WAIT);
+               if (m == NULL)
+                       return ENOBUFS;
                ddp = mtod(m, at_ddp_t *);
        }