]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
xfer_{up,down}load_gotpkt free their input sftp_packet as a side
authorSimon Tatham <anakin@pobox.com>
Thu, 11 Jul 2013 17:24:53 +0000 (17:24 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 11 Jul 2013 17:24:53 +0000 (17:24 +0000)
commit3d630654a41569bbfd484935b9994eed8844a180
tree638ce9bb09c5263f5879bfbfb4112eed15a1bdde
parenta641ccedb3a01923bf7e963f146575f8ff0088db
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: http://svn.tartarus.org/sgt/putty@9915 cda61777-01e9-0310-a592-d414129be87e
pscp.c
psftp.c
sftp.c