Fixed possible bug.

This commit is contained in:
irungentoo 2015-04-22 09:29:16 -04:00
parent db0438644c
commit 50b81dc669
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -1511,6 +1511,7 @@ static int handle_new_connection_handshake(Net_Crypto *c, IP_Port source, const
crypto_connection_add_source(c, crypt_connection_id, source); crypto_connection_add_source(c, crypt_connection_id, source);
if (create_send_handshake(c, crypt_connection_id, n_c.cookie, n_c.dht_public_key) == 0) { if (create_send_handshake(c, crypt_connection_id, n_c.cookie, n_c.dht_public_key) == 0) {
conn->status = CRYPTO_CONN_NOT_CONFIRMED;
ret = 0; ret = 0;
} }
} }