Commit de87cf87 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.59.2.1
parent 4f19c6a7
......@@ -268,6 +268,7 @@ do_handle_srp_reply(struct packet_handler *s,
{
lsh_string_free(salt);
disconnect_kex_failed(connection, "Bye");
return;
}
mpz_init(x);
......@@ -282,8 +283,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);
......
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