mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +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 rc;
|
||||
size_t secret_len;
|
||||
unsigned char *secret;
|
||||
unsigned char *secret = NULL;
|
||||
const EC_GROUP *private_key_group;
|
||||
EC_POINT *server_public_key_point;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user