(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:
Love Hörnquist Åstrand
2006-05-05 13:31:02 +00:00
parent 2fd4a77e66
commit 327bc0cf08

View File

@@ -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);