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:
rwatson 2006-03-27 00:08:32 +00:00
parent ddc54b9056
commit eaec7254b6

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);