diff options
author | 2019-07-22 11:38:22 -0700 | |
---|---|---|
committer | 2019-08-05 22:50:13 -0500 | |
commit | 3edeb4a4146dc3b54d6fa71b7ee0585cb52ebfdf (patch) | |
tree | 6c4487f7274644d38f128e31e37bba38f9880085 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | SMB3: Fix deadlock in validate negotiate hits reconnect (diff) | |
download | wireguard-linux-3edeb4a4146dc3b54d6fa71b7ee0585cb52ebfdf.tar.xz wireguard-linux-3edeb4a4146dc3b54d6fa71b7ee0585cb52ebfdf.zip |
SMB3: Fix potential memory leak when processing compound chain
When a reconnect happens in the middle of processing a compound chain
the code leaks a buffer from the memory pool. Fix this by properly
checking for a return code and freeing buffers in case of error.
Also maintain a buf variable to be equal to either smallbuf or bigbuf
depending on a response buffer size while parsing a chain and when
returning to the caller.
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions