In spx_input(), change a '&&' to a '||', as the spx trace code is able

to handle a NULL 'cb' here.

MFC after:	1 month
This commit is contained in:
Robert Watson 2006-03-27 00:08:32 +00:00
parent 416c476c47
commit dc6519ce4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157164

View File

@ -366,7 +366,7 @@ spx_input(struct mbuf *m, struct ipxpcb *ipxp)
dropwithreset:
IPX_LOCK_ASSERT(ipxp);
if (cb == NULL && (cb->s_ipxpcb->ipxp_socket->so_options & SO_DEBUG ||
if (cb == NULL || (cb->s_ipxpcb->ipxp_socket->so_options & SO_DEBUG ||
traceallspxs))
spx_trace(SA_DROP, (u_char)ostate, cb, &spx_savesi, 0);
IPX_UNLOCK(ipxp);