HomePhabricator

libcrypto: Fix access violation in ssh_init()

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Tue, Nov 13, 11:35 AM.

Description

libcrypto: Fix access violation in ssh_init()

This fixes an access violation when ssh_init() was called after
ssh_finalize() in Windows when using OpenSSL 1.0.2 and libssh statically
linked.

Fixes T120

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 41b0d263d6e57276cc3e2a2457d8ae48e1f56301)