Commit c162e572 authored by Niels Möller's avatar Niels Möller

(do_handle_srp_reply): Fixed missing

returns after disconnect_kex_failed and PROTOCOL_ERROR.

Rev: src/client_keyexchange.c:1.63
parent 609d24d5
......@@ -271,6 +271,7 @@ do_handle_srp_reply(struct packet_handler *s,
{
lsh_string_free(salt);
disconnect_kex_failed(connection, "Bye");
return;
}
mpz_init(x);
......@@ -285,9 +286,11 @@ do_handle_srp_reply(struct packet_handler *s,
mpz_clear(x);
if (!response)
PROTOCOL_ERROR(connection->e,
"SRP failure: Invalid public value from server.");
{
PROTOCOL_ERROR(connection->e,
"SRP failure: Invalid public value from server.");
return;
}
C_WRITE_NOW(connection, response);
connection->dispatch[SSH_MSG_KEXSRP_PROOF]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment