Commit 580909cb authored by Viktor Oreshkin's avatar Viktor Oreshkin

Revert/improve previous commit (see #57)

parent cdd34829
......@@ -243,7 +243,7 @@ static int tcp_rpcc_send_handshake_packet (connection_job_t C) /* {{{ */ {
struct tcp_rpc_data *D = TCP_RPC_DATA (C);
struct tcp_rpc_handshake_packet P;
if (!PID.pid) {
if (!PID.ip) {
init_client_PID (c->our_ip);
}
memset (&P, 0, sizeof (P));
......
......@@ -237,9 +237,7 @@ static int tcp_rpcs_process_nonce_packet (connection_job_t C, struct raw_message
static int tcp_rpcs_send_handshake_packet (connection_job_t c) {
struct tcp_rpc_data *D = TCP_RPC_DATA(c);
struct tcp_rpc_handshake_packet P;
if (!PID.ip) {
PID.ip = get_my_ipv4 ();
}
assert(PID.ip);
memset (&P, 0, sizeof (P));
P.type = RPC_HANDSHAKE;
P.flags = D->crypto_flags & RPCF_USE_CRC32C;
......
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