From 327bc0cf0899aab0c7da27333b77591876d88bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 5 May 2006 13:31:02 +0000 Subject: [PATCH] (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 --- lib/des/dh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/des/dh.c b/lib/des/dh.c index c12c2731c..017713dd7 100644 --- a/lib/des/dh.c +++ b/lib/des/dh.c @@ -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);