]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6]: Fix the data length of get destination options with short length
authorYang Hongyang <yanghy@cn.fujitsu.com>
Wed, 28 May 2008 08:27:28 +0000 (16:27 +0800)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 4 Jun 2008 19:02:35 +0000 (04:02 +0900)
commitf35afe997f1d931aacd4da163351329fd8eaf4fc
tree5e0dc14f6bb3f13b6446fef52916ed3a07dca12b
parent72cbf3b7fd812cee06a644b35464000b17b45783
[IPV6]: Fix the data length of get destination options with short length

 If get destination options with length which is not enough for that
option,getsockopt() will still return the real length of the option,
which is larger then the buffer space.
 This is because ipv6_getsockopt_sticky() returns the real length of
the option.

This patch fix this problem.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/ipv6_sockglue.c