diff options
-rw-r--r-- | sys/netinet/in_pcb.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 4527e28..95409fc 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in_pcb.c 8.4 (Berkeley) 5/24/95 - * $Id: in_pcb.c,v 1.31 1997/04/27 20:01:04 wollman Exp $ + * $Id: in_pcb.c,v 1.32 1997/05/19 00:18:30 tegge Exp $ */ #include <sys/param.h> @@ -470,10 +470,12 @@ in_setsockaddr(so, nam) struct socket *so; struct mbuf *nam; { - int s = splnet(); - register struct inpcb *inp = sotoinpcb(so); + int s; + register struct inpcb *inp; register struct sockaddr_in *sin; + s = splnet(); + inp = sotoinpcb(so); if (!inp) { splx(s); return EINVAL; @@ -494,10 +496,12 @@ in_setpeeraddr(so, nam) struct socket *so; struct mbuf *nam; { - int s = splnet(); - struct inpcb *inp = sotoinpcb(so); + int s; + struct inpcb *inp; register struct sockaddr_in *sin; + s = splnet(); + inp = sotoinpcb(so); if (!inp) { splx(s); return EINVAL; |