diff options
author | irungentoo <irungentoo@gmail.com> | 2013-12-12 13:49:49 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-12-12 13:49:49 -0500 |
commit | cbee548b0ab222852e22e6615277692149148aee (patch) | |
tree | 5efdd6683a1e01d08774f28043b6f6fb03924013 /toxcore/net_crypto.c | |
parent | 08890a2004aad06fef3f2ad31a141492141572d9 (diff) |
Fixed arm bug.
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 | } |