changeset 1133:d41c7b967868 coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Jun 2015 21:49:04 +0800
parents 54e6954a8ef0 (current diff) a9e074b78cd5 (diff)
children 624fc24cfae5
files
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/common-kex.c	Sat Jun 13 23:39:55 2015 +0800
+++ b/common-kex.c	Tue Jun 23 21:49:04 2015 +0800
@@ -703,6 +703,9 @@
 	ecc_key *Q_C, *Q_S, *Q_them;
 
 	Q_them = buf_get_ecc_raw_pubkey(pub_them, algo_kex->ecc_curve);
+	if (Q_them == NULL) {
+		dropbear_exit("ECC error");
+	}
 
 	ses.dh_K = dropbear_ecc_shared_secret(Q_them, &param->key);