xfer_{up,down}load_gotpkt free their input sftp_packet as a side
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 11 Jul 2013 17:24:53 +0000 (17:24 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 11 Jul 2013 17:24:53 +0000 (17:24 +0000)
commitcb5488c53f54fbdb36ce3f43bbf72d32c002b26a
tree638ce9bb09c5263f5879bfbfb4112eed15a1bdde
parent7cf3a8d8ee9e443c881433c9d8a91bd8d9b87d21
xfer_{up,down}load_gotpkt free their input sftp_packet as a side
effect of handling it, but they do not free it if it isn't a packet
they recognise as part of their upload/download. Invent a return value
that specifically signals this, and consistently free pktin at every
call site if that return value comes back. Also, ensure that that
return value also always comes with something meaningful in fxp_error.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9915 cda61777-01e9-0310-a592-d414129be87e
pscp.c
psftp.c
sftp.c