[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7604 - GNUnet/src/util/network
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7604 - GNUnet/src/util/network |
Date: |
Sun, 24 Aug 2008 15:29:31 -0600 (MDT) |
Author: grothoff
Date: 2008-08-24 15:29:31 -0600 (Sun, 24 Aug 2008)
New Revision: 7604
Modified:
GNUnet/src/util/network/ipcheck.c
Log:
fixing message 1411
Modified: GNUnet/src/util/network/ipcheck.c
===================================================================
--- GNUnet/src/util/network/ipcheck.c 2008-08-24 21:23:28 UTC (rev 7603)
+++ GNUnet/src/util/network/ipcheck.c 2008-08-24 21:29:31 UTC (rev 7604)
@@ -294,11 +294,17 @@
&routeList[slash + 1], &result[i].netmask);
if (ret <= 0)
{
- GNUNET_GE_LOG (ectx,
- GNUNET_GE_ERROR | GNUNET_GE_USER |
- GNUNET_GE_IMMEDIATE,
- _("Wrong format `%s' for netmask: %s\n"),
- &routeList[slash + 1], STRERROR (errno));
+ if (ret == 0)
+ GNUNET_GE_LOG (ectx,
+ GNUNET_GE_ERROR | GNUNET_GE_USER |
+ GNUNET_GE_IMMEDIATE,
+ _("Wrong format `%s' for netmask\n"),
+ &routeList[slash + 1]);
+ else
+ GNUNET_GE_LOG_STRERROR (ectx,
+ GNUNET_GE_ERROR | GNUNET_GE_USER |
+ GNUNET_GE_IMMEDIATE,
+ "inet_pton");
GNUNET_free (result);
GNUNET_free (routeList);
return NULL;
@@ -308,11 +314,17 @@
ret = inet_pton (AF_INET6, &routeList[start], &result[i].network);
if (ret <= 0)
{
- GNUNET_GE_LOG (ectx,
- GNUNET_GE_ERROR | GNUNET_GE_USER |
- GNUNET_GE_IMMEDIATE,
- _("Wrong format `%s' for network: %s\n"),
- &routeList[slash + 1], STRERROR (errno));
+ if (ret == 0)
+ GNUNET_GE_LOG (ectx,
+ GNUNET_GE_ERROR | GNUNET_GE_USER |
+ GNUNET_GE_IMMEDIATE,
+ _("Wrong format `%s' for network\n"),
+ &routeList[slash + 1]);
+ else
+ GNUNET_GE_LOG_STRERROR (ectx,
+ GNUNET_GE_ERROR | GNUNET_GE_USER |
+ GNUNET_GE_IMMEDIATE,
+ "inet_pton");
GNUNET_free (result);
GNUNET_free (routeList);
return NULL;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7604 - GNUnet/src/util/network,
gnunet <=