1
1

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...
Этот коммит содержится в:
Daniel Stenberg 2009-07-07 13:09:11 +02:00
родитель 5b599fbf40
Коммит bea1beb4fd

Просмотреть файл

@ -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;