shithub: riscv

Download patch

ref: c80d94304d0b9946c822e073b637760a0894522a
parent: 89625510554e65ec088110195670092bfe95fea4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 22 14:50:45 EDT 2018

devip: cleanup ipmux.c

--- a/sys/src/9/ip/ipmux.c
+++ b/sys/src/9/ip/ipmux.c
@@ -758,7 +758,7 @@
 		ip6 = (Ip6hdr*)bp->rp;
 		p = f->t2p[ip6->proto];
 	}
-	if(p && p->rcv)
+	if(p != nil && p->rcv != nil)
 		(*p->rcv)(p, ifc, bp);
 	else
 		freeblist(bp);