Skip to content
Permalink
Browse files

more formatting

  • Loading branch information...
willco007 committed Apr 23, 2019
1 parent 473fb7b commit 67233ae158a1471a4fe1d5977b5f4ced512d5085
Showing with 3 additions and 2 deletions.
  1. +1 −1 src/kex.c
  2. +2 −1 src/misc.c
@@ -1070,7 +1070,7 @@ static int diffie_hellman_sha256(LIBSSH2_SESSION *session,

_libssh2_bn_from_bin(exchange_state->f, exchange_state->f_value_len,
exchange_state->f_value);

if(_libssh2_get_string(&buf, &(exchange_state->h_sig),
&(exchange_state->h_sig_len))) {
ret = _libssh2_error(session, LIBSSH2_ERROR_HOSTKEY_INIT,
@@ -799,7 +799,8 @@ int _libssh2_copy_string(LIBSSH2_SESSION *session, struct string_buf *buf,
*outbuf = LIBSSH2_ALLOC(session, str_len);
if(*outbuf) {
memcpy(*outbuf, str, str_len);
} else {
}
else {
return -1;
}

0 comments on commit 67233ae

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