Hi,

Le 2015-08-31 18:19, Engstrom, John a écrit :
I have an application that is using libssh2 and when I call into libssh2_session_startup() I’m crashing. The calling code looks like this:

  LIBSSH2_SESSION **session;
.
.
.
*session = libssh2_session_init_ex(ssh_alloc, ssh_free, ssh_realloc, name);

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 *...

Maxime

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to