When used with socket splicing, tcp_usrreq() might get called with a socket that has an inp but tp is NULL.  The call stack for that is tcp_input() tcp_close() soisdisconnected() sorwakeup() somove() tcp_usrreq(PRU_RCVD).  To avoid a NULL dereference, just return in that case. ok henning@
When used with socket splicing, tcp_usrreq() might get called with
a socket that has an inp but tp is NULL.  The call stack for that
is tcp_input() tcp_close() soisdisconnected() sorwakeup() somove()
tcp_usrreq(PRU_RCVD).  To avoid a NULL dereference, just return in
that case.
ok henning@

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars