------------------------ sys/netnatm/natm.c ------------------------

        struct natmpcb *npcb;
        struct sockaddr_natm *snatm = (struct sockaddr_natm *)nam;
        struct atm_pseudoioctl api;
        struct atm_pseudohdr *aph;
        struct ifnet *ifp;
        int proto = so->so_proto->pr_protocol;

        KASSERT(solocked(so));

        /*
         * validate nam and npcb
         */

        if (snatm->snatm_len != sizeof(*snatm) ||
            (npcb->npcb_flags & NPCB_FREE) == 0)

--------------------------------------------------------------------

'npcb' is obviously not initialized.

Maxime

Reply via email to