mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-20 02:42:09 +03:00
When using ed25519 host keys and a custom memory allocator.
This commit is contained in:
@@ -1590,7 +1590,7 @@ gen_publickey_from_ed25519_openssh_priv_data(LIBSSH2_SESSION *session,
|
||||
goto clean_exit;
|
||||
}
|
||||
|
||||
ctx = LIBSSH2_CALLOC(session, sizeof(libssh2_ed25519_ctx));
|
||||
ctx = _libssh2_ed25519_new_ctx();
|
||||
if (ctx == NULL) {
|
||||
_libssh2_error(session, LIBSSH2_ERROR_ALLOC,
|
||||
"Unable to allocate memory for ed25519 key");
|
||||
|
||||
Reference in New Issue
Block a user