diff options
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 6b64c1b6..9b0f0443 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -753,7 +753,7 @@ static void receive_crypto(Net_Crypto *c) | |||
753 | c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; | 753 | c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; |
754 | } | 754 | } |
755 | } else if (id_packet(c->lossless_udp, | 755 | } else if (id_packet(c->lossless_udp, |
756 | c->crypto_connections[i].number) != -1) { | 756 | c->crypto_connections[i].number) != (uint8_t)~0) { |
757 | /* This should not happen, timeout the connection if it does. */ | 757 | /* This should not happen, timeout the connection if it does. */ |
758 | c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; | 758 | c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; |
759 | } | 759 | } |
@@ -782,7 +782,7 @@ static void receive_crypto(Net_Crypto *c) | |||
782 | /* This should not happen, timeout the connection if it does. */ | 782 | /* This should not happen, timeout the connection if it does. */ |
783 | c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; | 783 | c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; |
784 | } | 784 | } |
785 | } else if (id_packet(c->lossless_udp, c->crypto_connections[i].number) != -1) { | 785 | } else if (id_packet(c->lossless_udp, c->crypto_connections[i].number) != (uint8_t)~0) { |
786 | /* This should not happen, timeout the connection if it does. */ | 786 | /* This should not happen, timeout the connection if it does. */ |
787 | c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; | 787 | c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; |
788 | } | 788 | } |