summaryrefslogtreecommitdiff
path: root/src/session.rs
diff options
context:
space:
mode:
authorYusuke Sasaki <yusuke.sasaki.nuem@gmail.com>2020-01-29 17:05:42 +0900
committerWez Furlong <wez@wezfurlong.org>2020-01-29 08:17:31 -0800
commit747bbf07a5c2515ed2f828ba75227ed2272fab76 (patch)
tree20ffd941eb2e53c6c1ffb415e129d004ea3b2019 /src/session.rs
parente43929d52795a047942a5c14281707bf8c69d5c4 (diff)
downloadssh2-rs-747bbf07a5c2515ed2f828ba75227ed2272fab76.zip
copy the error message obtained in last_error
The pointer obtained by `libssh2_session_last_error` points to the buffer that `LIBSSH2_SESSION` holds internally, so its contents may be overwritten by the next API call. This patch changes the data type for storing error messages inside `Error` from `&'static str` to `Cow<'static, str>`.
Diffstat (limited to 'src/session.rs')
0 files changed, 0 insertions, 0 deletions