cifs: fix channel signing
authorAurelien Aptel <aaptel@suse.com>
Thu, 6 Feb 2020 12:49:26 +0000 (13:49 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 6 Feb 2020 18:42:36 +0000 (12:42 -0600)
commitcc95b6772790c476b2c2de09abec739120593d98
tree68fb3fe74f2b403bfddc08490f2e041c9185de09
parentd26c2ddd33569667e3eeb577c4c1d966ca9192e2
cifs: fix channel signing

The server var was accidentally used as an iterator over the global
list of connections, thus overwritten the passed argument. This
resulted in the wrong signing key being returned for extra channels.

Fix this by using a separate var to iterate.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2transport.c