[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1410 - GNUnet/src/applications/transport
From: |
durner |
Subject: |
[GNUnet-SVN] r1410 - GNUnet/src/applications/transport |
Date: |
Tue, 12 Jul 2005 09:45:35 -0700 (PDT) |
Author: durner
Date: 2005-07-12 09:45:33 -0700 (Tue, 12 Jul 2005)
New Revision: 1410
Modified:
GNUnet/src/applications/transport/transport.c
Log:
fix potential access violation/SIGTRAP
Modified: GNUnet/src/applications/transport/transport.c
===================================================================
--- GNUnet/src/applications/transport/transport.c 2005-07-12 16:15:56 UTC
(rev 1409)
+++ GNUnet/src/applications/transport/transport.c 2005-07-12 16:45:33 UTC
(rev 1410)
@@ -451,12 +451,12 @@
perm = permute(WEAK, tapis_count);
ttype = tapis_count-1;
- while ( (ttype < tapis_count) &&
+ while ( (ttype >= 0) &&
( (tapis[perm[ttype]] == NULL) ||
(tapis[perm[ttype]] != NULL &&
tapis[perm[ttype]]->helo == NULL) ) )
ttype--;
- if (ttype >= tapis_count) {
+ if (ttype < 0) {
FREE(perm);
MUTEX_UNLOCK(&tapis_lock);
return NULL;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1410 - GNUnet/src/applications/transport,
durner <=