mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
kex1: Fix null check of hostkey.
This commit is contained in:
@@ -375,7 +375,7 @@ SSH_PACKET_CALLBACK(ssh_packet_publickey1){
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
hostkey = make_rsa1_string(host_exp,host_mod);
|
hostkey = make_rsa1_string(host_exp,host_mod);
|
||||||
if (serverkey == NULL) {
|
if (hostkey == NULL) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if (build_session_id1(session, server_mod, host_mod) < 0) {
|
if (build_session_id1(session, server_mod, host_mod) < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user