mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
- don't crash when trying to add to known_hosts if it doesn't exist
- comments --HG-- extra : convert_revision : ffafd48c7494fee17a98d901e30c3372e1a092e9
This commit is contained in:
parent
6d93048fe9
commit
fdfc95df8b
@ -255,5 +255,7 @@ out:
|
||||
fclose(hostsfile);
|
||||
}
|
||||
m_free(filename);
|
||||
buf_free(line);
|
||||
if (line != NULL) {
|
||||
buf_free(line);
|
||||
}
|
||||
}
|
||||
|
@ -464,6 +464,8 @@ void recv_msg_kexinit() {
|
||||
|
||||
/* Initialises and generate one side of the diffie-hellman key exchange values.
|
||||
* See the ietf-secsh-transport draft, section 6, for details */
|
||||
/* dh_pub and dh_priv will be initialised by this function, and should be
|
||||
* mp_clear()ed after finished */
|
||||
void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv) {
|
||||
|
||||
mp_int dh_p, dh_q, dh_g;
|
||||
|
Loading…
Reference in New Issue
Block a user