tls: retrun the correct IV in getsockopt
authorBoris Pismenny <borisp@mellanox.com>
Wed, 14 Feb 2018 08:46:06 +0000 (10:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2018 20:05:19 +0000 (15:05 -0500)
commita1dfa6812b682eef750412dd5a90e7d38d7af068
tree99850708433de9870bf9aa9f356809b0eec28f90
parent8ace02073ee6e8c0e559f712d7784fcbd555c839
tls: retrun the correct IV in getsockopt

Current code returns four bytes of salt followed by four bytes of IV.
This patch returns all eight bytes of IV.

fixes: 3c4d7559159b ("tls: kernel TLS support")
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_main.c