Skip to content

Commit

Permalink
more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
willco007 committed Apr 23, 2019
1 parent 473fb7b commit 67233ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kex.c
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/misc.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 67233ae

Please sign in to comment.