Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 449a7443 authored by David Disseldorp's avatar David Disseldorp Committed by Greg Kroah-Hartman
Browse files

cifs: fix leak in FSCTL_ENUM_SNAPS response handling



commit 0e5c795592930d51fd30d53a2e7b73cba022a29b upstream.

The server may respond with success, and an output buffer less than
sizeof(struct smb_snapshot_array) in length. Do not leak the output
buffer in this case.

Fixes: 834170c8 ("Enable previous version support")
Signed-off-by: default avatarDavid Disseldorp <ddiss@suse.de>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 87c0604d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment