David Stevens wrote:
What about just checking for 0 in the later test?

        if (val && __dev_get_by_index(val) == NULL) {

We could fail the next check right before that though:

          if (sk->sk_bound_dev_if && sk->sk_bound_dev_if != val)
                  goto e_inval;

I just mimicked what the IPv4 code does in do_ip_setsockopt().

-Brian
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to