commit | e12fe7146232cda4e1e1c68e100e7dc8cde3d37b | [log] [tgz] |
---|---|---|
author | Jakob Egger <jakob@eggerapps.at> | Thu Jan 14 13:57:33 2016 +0100 |
committer | Daniel Stenberg <daniel@haxx.se> | Thu Feb 11 13:57:14 2016 +0100 |
tree | 8296ec781d8764cc0b6274beea310516b4a3f92d | |
parent | 992de2fbfaa434e3048ccf41a1a8966b05cc170a [diff] |
sftp.c: Check Read Packet File Offset This commit adds a simple check to see if the offset of the read request matches the expected file offset. We could try to recover, from this condition at some point in the future. Right now it is better to return an error instead of corrupted data.