This month's Index
Subject: Re: OS X Crash in libssh2_session_startup() - EXC_BAD_ACCESS (code=1 address=0x0)
Re: OS X Crash in libssh2_session_startup() - EXC_BAD_ACCESS (code=1 address=0x0)
From: Engstrom, John <john.engstrom_at_tditechnologies.com>
Date: Tue, 1 Sep 2015 09:14:10 -0500
> On Sep 1, 2015, at 4:46 AM, Peter Stuge <peter_at_stuge.se> wrote:
Peter, the calling code has an auto variable LIBSSH2_SESSION *session . We use the ssh session in other routines - for example where we call libssh2_userauth_list(). Because we are passing the LIBSSH2_SESSION *session into a routine that is responsible for creating the session pointer we pass in the pointer pointer so it can modify the pointer in the caller. Make sense?