]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix type mismatch in sftp_find_request
authorTim Kosse <tim.kosse@filezilla-project.org>
Fri, 18 Nov 2016 23:34:46 +0000 (00:34 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 19 Nov 2016 07:27:24 +0000 (07:27 +0000)
commit09b74971c768b7d74484040ce155d117aff3f237
tree6edd4237f1cf5028fc8082d2710b5f2dbb297f0f
parentfa91b55eec241374d3eda4fbeac6f2dc372f1df2
Fix type mismatch in sftp_find_request

The id member of the sftp_request structure is of type unsigned int.
This type is also used in the sftp_reqfind callback. In
sftp_find_request we thus need to pass a pointer to unsigned int to
find234. Before this commit, sftp_find_request was passing a pointer
to unsigned long to find234, which causes the lookup to fail on
big-endian platforms where sizeof(unsigned int) != sizeof(unsigned
long), e.g. ppc64.
sftp.c