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: Mon, 31 Aug 2015 19:38:42 -0500
Yeah, technically the line "LIBSSH2_SESSION **session;" is actually "LIBSSH2_SESSION **session)" as in it's the last parameter to a function. The calling code passes in the address of a LIBSSH2_SESSION *.
Le 2015-08-31 18:19, Engstrom, John a écrit :
I don't know if you actually allocate the space for *session in the hidden code, but right now *session can point to anything. Otherwise, it should simply be a LIBSSH2_SESSION *...