tech-kern archive

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

Brainy: uninitialized var in NATM



------------------------ 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


Home | Main Index | Thread Index | Old Index