1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

Fixed Clang warning #206

Fixed possible garbage value for secret in an error case
This commit is contained in:
Will Cosgrove
2018-03-12 10:08:13 -07:00
committed by GitHub
parent 6909dfc07e
commit f8b2474fb6

View File

@@ -1580,7 +1580,7 @@ _libssh2_ecdh_gen_k(_libssh2_bn **k, _libssh2_ec_key *private_key,
int ret = 0;
int rc;
size_t secret_len;
unsigned char *secret;
unsigned char *secret = NULL;
const EC_GROUP *private_key_group;
EC_POINT *server_public_key_point;