diff options
author | Wez Furlong <wez@wezfurlong.org> | 2019-07-23 17:52:31 -0700 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2019-07-29 08:55:06 -0700 |
commit | d29b2f7a9fcc6908f5f1e48af15e057d77b3e2ee (patch) | |
tree | c0e6ccd13d8cda7443c463645880142bd7d0d535 /src/session.rs | |
parent | eac5df1d22eea071708db2e57dc0637ceb3fc580 (diff) | |
download | ssh2-rs-d29b2f7a9fcc6908f5f1e48af15e057d77b3e2ee.zip |
Agent no longer borrows session either
Diffstat (limited to 'src/session.rs')
-rw-r--r-- | src/session.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.rs b/src/session.rs index 47329aa..7228e6e 100644 --- a/src/session.rs +++ b/src/session.rs @@ -429,7 +429,7 @@ impl Session { /// /// The returned agent will still need to be connected manually before use. pub fn agent(&self) -> Result<Agent, Error> { - unsafe { SessionBinding::from_raw_opt(self, raw::libssh2_agent_init(self.inner.raw)) } + unsafe { Agent::from_raw_opt(raw::libssh2_agent_init(self.inner.raw), &self.inner) } } /// Init a collection of known hosts for this session. |