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:
@@ -1580,7 +1580,7 @@ _libssh2_ecdh_gen_k(_libssh2_bn **k, _libssh2_ec_key *private_key,
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
int rc;
|
int rc;
|
||||||
size_t secret_len;
|
size_t secret_len;
|
||||||
unsigned char *secret;
|
unsigned char *secret = NULL;
|
||||||
const EC_GROUP *private_key_group;
|
const EC_GROUP *private_key_group;
|
||||||
EC_POINT *server_public_key_point;
|
EC_POINT *server_public_key_point;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user