On Mon, Jul 04, 2011 at 02:47:15AM +0200, Claudio Jeker wrote:
>       default:
> -             /* pf_route6 can free the mbuf causing *m0 to become NULL */
> +             /* pf_route can free the mbuf causing *m0 to become NULL */
>               if (r->rt)
> -                     pf_route6(m0, r, dir, kif->pfik_ifp, s);
> +                     if (af == AF_INET)
> +                             pf_route(m0, r, dir, kif->pfik_ifp, s);
> +                     if (af == AF_INET6)
> +                             pf_route6(m0, r, dir, kif->pfik_ifp, s);
>               break;

Note that { } are missing at the if block.  Fix that before testing,
otherwise it will panic with IPv6 packets.

bluhm

Reply via email to