Merge pull request #999 from sfackler/fix-get-session
Fix get session callback
This commit is contained in:
commit
e9e9239c47
|
|
@ -406,7 +406,7 @@ where
|
|||
match (*callback)(ssl, data) {
|
||||
Some(session) => {
|
||||
let p = session.as_ptr();
|
||||
mem::forget(p);
|
||||
mem::forget(session);
|
||||
*copy = 0;
|
||||
p
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue