From eaec7254b67e5191f375fd6c56b4d2931a3bd189 Mon Sep 17 00:00:00 2001 From: rwatson Date: Mon, 27 Mar 2006 00:08:32 +0000 Subject: In spx_input(), change a '&&' to a '||', as the spx trace code is able to handle a NULL 'cb' here. MFC after: 1 month --- sys/netipx/spx_usrreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netipx/spx_usrreq.c') diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c index 022f1a9..c13dff5 100644 --- a/sys/netipx/spx_usrreq.c +++ b/sys/netipx/spx_usrreq.c @@ -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); -- cgit v1.1