gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r5882 - GNUnet/src/applications/transport


From: gnunet
Subject: [GNUnet-SVN] r5882 - GNUnet/src/applications/transport
Date: Wed, 12 Dec 2007 13:52:51 -0700 (MST)

Author: grothoff
Date: 2007-12-12 13:52:50 -0700 (Wed, 12 Dec 2007)
New Revision: 5882

Modified:
   GNUnet/src/applications/transport/transport.c
Log:
cleanup

Modified: GNUnet/src/applications/transport/transport.c
===================================================================
--- GNUnet/src/applications/transport/transport.c       2007-12-12 20:52:47 UTC 
(rev 5881)
+++ GNUnet/src/applications/transport/transport.c       2007-12-12 20:52:50 UTC 
(rev 5882)
@@ -481,8 +481,7 @@
       ttype = tapis_count - 1;
       while ((ttype < tapis_count) &&
              ((tapis[perm[ttype]] == NULL) ||
-              (tapis[perm[ttype]] != NULL &&
-               tapis[perm[ttype]]->hello == NULL)))
+              (tapis[perm[ttype]]->hello == NULL)))
         ttype--;                /* unsigned, will wrap around! */
       if (ttype >= tapis_count)
         {
@@ -493,13 +492,16 @@
       ttype = perm[ttype];
       GNUNET_free (perm);
     }
-  if ((ttype >= tapis_count) || (tapis[ttype] == NULL))
+  else
     {
-      GNUNET_GE_LOG (ectx,
-                     GNUNET_GE_DEBUG | GNUNET_GE_BULK | GNUNET_GE_USER,
-                     _("No transport of type %d known.\n"), ttype);
-      GNUNET_mutex_unlock (tapis_lock);
-      return NULL;
+      if ((ttype >= tapis_count) || (tapis[ttype] == NULL))
+       {
+         GNUNET_GE_LOG (ectx,
+                        GNUNET_GE_DEBUG | GNUNET_GE_BULK | GNUNET_GE_USER,
+                        _("No transport of type %d known.\n"), ttype);
+         GNUNET_mutex_unlock (tapis_lock);
+         return NULL;
+       }
     }
   tapi = tapis[ttype];
   if (tapi->hello == NULL)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]