From bea1beb4fd74f27c9d5291a094d74e65a28d4afc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 7 Jul 2009 13:09:11 +0200 Subject: [PATCH] Mark McPherson posted bug report #2815836 pointing out that the custom memory functions were not given the correct data as argument. This is now fixed even if I personally don't quite grasp why abstract is passed as a pointer to pointer all over libssh2... --- src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.c b/src/session.c index d6811985..92109b4a 100644 --- a/src/session.c +++ b/src/session.c @@ -427,7 +427,7 @@ libssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*my_alloc)), local_realloc = my_realloc; } - session = local_alloc(sizeof(LIBSSH2_SESSION), abstract); + session = local_alloc(sizeof(LIBSSH2_SESSION), &abstract); if (session) { memset(session, 0, sizeof(LIBSSH2_SESSION)); session->alloc = local_alloc;