From addeaf5d065f4a4787c389049afc36fd4ed140e4 Mon Sep 17 00:00:00 2001 From: cube Date: Sun, 15 Jun 2008 20:36:55 +0000 Subject: [PATCH] Fix previous: a well hidden assignment was lost. --- sys/net/rtsock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 4db04a3533d8..979ec255dcd3 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtsock.c,v 1.108 2008/06/15 16:37:21 christos Exp $ */ +/* $NetBSD: rtsock.c,v 1.109 2008/06/15 20:36:55 cube Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.108 2008/06/15 16:37:21 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.109 2008/06/15 20:36:55 cube Exp $"); #include "opt_inet.h" @@ -162,6 +162,7 @@ route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, if (req == PRU_ATTACH) { sosetlock(so); MALLOC(rp, struct rawcb *, sizeof(*rp), M_PCB, M_WAITOK|M_ZERO); + so->so_pcb = rp; } if (req == PRU_DETACH && rp) rt_adjustcount(rp->rcb_proto.sp_protocol, -1);