gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33421 - gnunet/src/ats-tool


From: gnunet
Subject: [GNUnet-SVN] r33421 - gnunet/src/ats-tool
Date: Tue, 27 May 2014 13:36:51 +0200

Author: wachs
Date: 2014-05-27 13:36:51 +0200 (Tue, 27 May 2014)
New Revision: 33421

Modified:
   gnunet/src/ats-tool/gnunet-ats.c
Log:
change order for error check


Modified: gnunet/src/ats-tool/gnunet-ats.c
===================================================================
--- gnunet/src/ats-tool/gnunet-ats.c    2014-05-27 11:34:37 UTC (rev 33420)
+++ gnunet/src/ats-tool/gnunet-ats.c    2014-05-27 11:36:51 UTC (rev 33421)
@@ -185,6 +185,15 @@
   uint32_t ats_value;
   uint32_t network;
 
+  if (res == GNUNET_SYSERR)
+  {
+    fprintf (stderr, "Failed to convert address for peer `%s' plugin `%s' 
length %lu to string \n",
+        GNUNET_i2s (&pr->address->peer),
+        pr->address->transport_name,
+        pr->address->address_length );
+    return;
+  }
+
   if (NULL == address)
   {
     /* We're done */
@@ -204,15 +213,6 @@
     return;
   }
 
-  if (res == GNUNET_SYSERR)
-  {
-    fprintf (stderr, "Failed to convert address for peer `%s' plugin `%s' 
length %lu to string \n",
-        GNUNET_i2s (&pr->address->peer),
-        pr->address->transport_name,
-        pr->address->address_length );
-    return;
-  }
-
   ats_str = GNUNET_strdup("");
   network = GNUNET_ATS_NET_UNSPECIFIED;
   for (c = 0; c < pr->ats_count; c++)




reply via email to

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