diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-26 19:31:01 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-26 19:31:01 -0400 |
commit | e6a33fede62f54b8d925a8d4b986581b3afddc0b (patch) | |
tree | eb6cfadaac71a9058c959978cc661aeb5933c151 /core | |
parent | d04f5f40d47de121b377ce93ca0ca0b335033879 (diff) |
Small inconsistency fixed.
Diffstat (limited to 'core')
-rw-r--r-- | core/Lossless_UDP.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Lossless_UDP.c b/core/Lossless_UDP.c index 2a553b8e..43f61b5b 100644 --- a/core/Lossless_UDP.c +++ b/core/Lossless_UDP.c | |||
@@ -176,7 +176,7 @@ int new_inconnection(IP_Port ip_port) | |||
176 | if(getconnection_id(ip_port) != -1) | 176 | if(getconnection_id(ip_port) != -1) |
177 | return -1; | 177 | return -1; |
178 | uint32_t i; | 178 | uint32_t i; |
179 | for(i = 0; i < MAX_CONNECTIONS; ++i) | 179 | for(i = 0; i < MAX_CONNECTIONS; ++i) { |
180 | if(connections[i].status == 0) { | 180 | if(connections[i].status == 0) { |
181 | memset(&connections[i], 0, sizeof(Connection)); | 181 | memset(&connections[i], 0, sizeof(Connection)); |
182 | connections[i].ip_port = ip_port; | 182 | connections[i].ip_port = ip_port; |
@@ -193,6 +193,7 @@ int new_inconnection(IP_Port ip_port) | |||
193 | connections[i].send_counter = 127; | 193 | connections[i].send_counter = 127; |
194 | return i; | 194 | return i; |
195 | } | 195 | } |
196 | } | ||
196 | return -1; | 197 | return -1; |
197 | } | 198 | } |
198 | 199 | ||