devip: cleanup ipmux.c

This commit is contained in:
cinap_lenrek 2018-04-22 18:50:45 +02:00
parent 8962551055
commit c80d94304d

View file

@ -758,7 +758,7 @@ nomatch:
ip6 = (Ip6hdr*)bp->rp; ip6 = (Ip6hdr*)bp->rp;
p = f->t2p[ip6->proto]; p = f->t2p[ip6->proto];
} }
if(p && p->rcv) if(p != nil && p->rcv != nil)
(*p->rcv)(p, ifc, bp); (*p->rcv)(p, ifc, bp);
else else
freeblist(bp); freeblist(bp);