Logging loop corrected.

This commit is contained in:
Coren[m] 2013-09-27 19:50:42 +02:00
parent 06a85177e9
commit 483a6cc161

View File

@ -1300,7 +1300,9 @@ void doMessenger(Messenger *m)
#ifdef CLIENT_ONETOONE_IP
assoc = &cptr->assoc;
#else
for (assoc = &cptr->assoc4; assoc != &cptr->assoc6; assoc = &cptr->assoc6)
uint32_t a;
for (a = 0, assoc = &cptr->assoc4; a < 2; a++, assoc = &cptr->assoc6)
#endif
if (ip_isset(&assoc->ip_port.ip)) {
last_pinged = lastdump - assoc->last_pinged;
@ -1359,7 +1361,9 @@ void doMessenger(Messenger *m)
#ifdef CLIENT_ONETOONE_IP
assoc = &cptr->assoc;
#else
for (assoc = &cptr->assoc4; assoc != &cptr->assoc6; assoc = &cptr->assoc6)
uint32_t a;
for (a = 0, assoc = &cptr->assoc4; a < 2; a++, assoc = &cptr->assoc6)
#endif
if (ip_isset(&assoc->ip_port.ip)) {
last_pinged = lastdump - assoc->last_pinged;