diff options
Diffstat (limited to 'core/net_crypto.c')
-rw-r--r-- | core/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/net_crypto.c b/core/net_crypto.c index 1c56b95a..406926b7 100644 --- a/core/net_crypto.c +++ b/core/net_crypto.c | |||
@@ -521,7 +521,7 @@ static void receive_crypto(void) | |||
521 | 521 | ||
522 | } | 522 | } |
523 | if (crypto_connections[i].status == CONN_NOT_CONFIRMED) { | 523 | if (crypto_connections[i].status == CONN_NOT_CONFIRMED) { |
524 | if (id_packet(crypto_connections[i].number) == CONN_ESTABLISHED) { | 524 | if (id_packet(crypto_connections[i].number) == 3) { |
525 | uint8_t temp_data[MAX_DATA_SIZE]; | 525 | uint8_t temp_data[MAX_DATA_SIZE]; |
526 | uint8_t data[MAX_DATA_SIZE]; | 526 | uint8_t data[MAX_DATA_SIZE]; |
527 | int length = read_packet(crypto_connections[i].number, temp_data); | 527 | int length = read_packet(crypto_connections[i].number, temp_data); |