-/* $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 $ */
/*
#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;
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;