tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Brainy: uninitialized var in NATM
On Fri, Nov 06, 2015 at 02:07:40PM +0100, Maxime Villard wrote:
> ------------------------ 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;
remove the line above (proto is unused), add this:
npcb = (struct natmpcb *) so->so_pcb;
Martin
Home |
Main Index |
Thread Index |
Old Index