Mercurial > dropbear
diff common-kex.c @ 1133:d41c7b967868 coverity
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 23 Jun 2015 21:49:04 +0800 |
parents | a9e074b78cd5 |
children | 1b8afc698e39 |
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, ¶m->key);