(DH_compute_key): check return status value from DH_check_pubkey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17463 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -201,7 +201,7 @@ DH_compute_key(unsigned char *shared_key,
|
||||
{
|
||||
int codes;
|
||||
|
||||
if (!DH_check_pubkey(dh, peer_pub_key, &codes))
|
||||
if (!DH_check_pubkey(dh, peer_pub_key, &codes) || codes != 0)
|
||||
return 0;
|
||||
|
||||
return dh->meth->compute_key(shared_key, peer_pub_key, dh);
|
||||
|
Reference in New Issue
Block a user