diff options
author | 2020-10-02 14:04:51 +0100 | |
---|---|---|
committer | 2020-10-05 17:09:22 +0100 | |
commit | 38b1dc47a35ba14c3f4472138ea56d014c2d609b (patch) | |
tree | 4bb9e068a2a38a03868574a81bbe09ed21c63b63 /drivers/usb/cdns3/cdns3-debug.h | |
parent | rxrpc: The server keyring isn't network-namespaced (diff) | |
download | wireguard-linux-38b1dc47a35ba14c3f4472138ea56d014c2d609b.tar.xz wireguard-linux-38b1dc47a35ba14c3f4472138ea56d014c2d609b.zip |
rxrpc: Fix server keyring leak
If someone calls setsockopt() twice to set a server key keyring, the first
keyring is leaked.
Fix it to return an error instead if the server key keyring is already set.
Fixes: 17926a79320a ("[AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions