mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
dh: Fix NULL check for p_group14.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
7ff6b3537f
commit
d4d30d0375
2
src/dh.c
2
src/dh.c
@@ -170,7 +170,7 @@ int ssh_crypto_init(void) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
bignum_bin2bn(p_group14_value, P_GROUP14_LEN, &p_group14);
|
bignum_bin2bn(p_group14_value, P_GROUP14_LEN, &p_group14);
|
||||||
if (p_group1 == NULL) {
|
if (p_group14 == NULL) {
|
||||||
bignum_free(g);
|
bignum_free(g);
|
||||||
bignum_free(p_group1);
|
bignum_free(p_group1);
|
||||||
g = NULL;
|
g = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user