[IPV6]: return EINVAL for invalid address with flowlabel lease request
authorJames Morris <jmorris@namei.org>
Tue, 31 Oct 2006 02:56:06 +0000 (18:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Oct 2006 02:56:06 +0000 (18:56 -0800)
commitc6817e4c32d8c4118405d2dec30ac1c264349085
tree57c5959854118c45d6509cb782ac9bff82b0c500
parentde76e695a5ce19c121ba7e246b45f258be678a75
[IPV6]: return EINVAL for invalid address with flowlabel lease request

Currently, when an application requests a lease for a flowlabel via the
IPV6_FLOWLABEL_MGR socket option, no error is returned if an invalid type
of destination address is supplied as part of the request, leading to a
silent failure.  This patch ensures that EINVAL is returned to the
application in this case.

Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_flowlabel.c