]> asedeno.scripts.mit.edu Git - PuTTY.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)
commitc925526e3fbf580a4df3e796fc78e22bbe33651d
tree638ce9bb09c5263f5879bfbfb4112eed15a1bdde
parentd9ccf044be5618fd1ded0c69e86212e2038ec6b9
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.

[originally from svn r9915]
pscp.c
psftp.c
sftp.c