comparison common-kex.c @ 1610:96e4c9b2cc00 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Wed, 21 Mar 2018 00:52:02 +0800
parents 0bdbb9ecc403
children d32bcb5c557d
comparison
equal deleted inserted replaced
1580:7f2be495dff6 1610:96e4c9b2cc00
691 buf_put_ecc_raw_pubkey_string(ses.kexhashbuf, Q_C); 691 buf_put_ecc_raw_pubkey_string(ses.kexhashbuf, Q_C);
692 /* Q_S, server's ephemeral public key octet string */ 692 /* Q_S, server's ephemeral public key octet string */
693 buf_put_ecc_raw_pubkey_string(ses.kexhashbuf, Q_S); 693 buf_put_ecc_raw_pubkey_string(ses.kexhashbuf, Q_S);
694 /* K, the shared secret */ 694 /* K, the shared secret */
695 buf_putmpint(ses.kexhashbuf, ses.dh_K); 695 buf_putmpint(ses.kexhashbuf, ses.dh_K);
696
697 ecc_free(Q_them);
698 m_free(Q_them);
696 699
697 /* calculate the hash H to sign */ 700 /* calculate the hash H to sign */
698 finish_kexhashbuf(); 701 finish_kexhashbuf();
699 } 702 }
700 #endif /* DROPBEAR_ECDH */ 703 #endif /* DROPBEAR_ECDH */