diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-03-29 18:21:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-03-29 18:21:01 +0000 |
commit | 0f0aedfb6c864e664653aa97725f7eb25b2c8bce (patch) | |
tree | 0cd9f6914785ce7855f76427daff1d4b760c9adf /sys/netns/spp_usrreq.c | |
parent | ade47b7aa3d3f840d05f608a670ae3c508d27e35 (diff) |
uninitialized variable; koji@math.human.nagoya-u.ac.jp
Diffstat (limited to 'sys/netns/spp_usrreq.c')
-rw-r--r-- | sys/netns/spp_usrreq.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netns/spp_usrreq.c b/sys/netns/spp_usrreq.c index 14558c39a35..b34d3b74d58 100644 --- a/sys/netns/spp_usrreq.c +++ b/sys/netns/spp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spp_usrreq.c,v 1.4 1996/12/23 08:47:07 mickey Exp $ */ +/* $OpenBSD: spp_usrreq.c,v 1.5 1997/03/29 18:21:00 deraadt Exp $ */ /* $NetBSD: spp_usrreq.c,v 1.9 1996/02/13 22:14:13 christos Exp $ */ /* @@ -748,10 +748,10 @@ spp_output(m0, va_alist) #endif { register struct sppcb *cb = NULL; - struct socket *so = cb->s_nspcb->nsp_socket; + struct socket *so; register struct mbuf *m; register struct spidp *si = (struct spidp *) 0; - register struct sockbuf *sb = &so->so_snd; + register struct sockbuf *sb; int len = 0, win, rcv_win; short span, off, recordp = 0; u_short alo; @@ -767,6 +767,8 @@ spp_output(m0, va_alist) cb = va_arg(ap, struct sppcb *); va_end(ap); + so = cb->s_nspcb->nsp_socket; + sb = &so->so_snd; if (m0) { int mtu = cb->s_mtu; |