smb: client: allow parsing zero-length AV pairs
authorPaulo Alcantara <pc@manguebit.org>
Fri, 25 Jul 2025 03:04:43 +0000 (00:04 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 27 Jul 2025 21:59:59 +0000 (16:59 -0500)
commitbe77ab6b9fbe348daf3c2d3ee40f23ca5110a339
treea3a4ba1f5d3f427c95902a94954b0745c9e232cb
parent3edc68de5629efa39911e7c9687b19ad04051cab
smb: client: allow parsing zero-length AV pairs

Zero-length AV pairs should be considered as valid target infos.
Don't skip the next AV pairs that follow them.

Cc: linux-cifs@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>
Fixes: 0e8ae9b953bc ("smb: client: parse av pair type 4 in CHALLENGE_MESSAGE")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsencrypt.c