Skip to content
Permalink
Browse files

_libssh2_ecdsa_free() is only defined if LIBSSH2_ECDSA is defined.

  • Loading branch information
colinw-smartrg committed Dec 11, 2019
1 parent 5e403ff commit 5aa81fcf3652e1880e97f4c494baae7852e2ab82
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/session.c
@@ -983,9 +983,10 @@ session_free(LIBSSH2_SESSION *session)
}

/* Free startup_key_state.key_state_low variables */
#if LIBSSH2_ECDSA
if(session->startup_key_state.key_state_low.private_key != NULL)
_libssh2_ecdsa_free(session->startup_key_state.key_state_low.private_key);

#endif
if(session->startup_key_state.key_state_low.public_key_oct != NULL)
free(session->startup_key_state.key_state_low.public_key_oct);

0 comments on commit 5aa81fc

Please sign in to comment.
You can’t perform that action at this time.