Skip to content
Commit 3662f8be authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

kio_sftp: Use the right type for timeout_sec and timeout_usec.

libssh expects the values passed to the SSH_OPTIONS_TIMEOUT and
SSH_OPTIONS_TIMEOUT_USEC to be longs, not plain ints.

On 64-bit platforms with sizeof(long) > sizeof(int), this mismatch can
be problematic and potentially result in invalid memory access that
causes the calls to ssh_options_set() to fail.

Forward-ported from kde-runtime/3dc39e92d34b3612e90f7a0b34d5d845a7af0b72.

CCBUG:      331674
REVIEW:     120900
parent fe1930b5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment