[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18775 - gnunet-gtk/src/setup
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18775 - gnunet-gtk/src/setup |
Date: |
Fri, 23 Dec 2011 16:33:43 +0100 |
Author: grothoff
Date: 2011-12-23 16:33:43 +0100 (Fri, 23 Dec 2011)
New Revision: 18775
Modified:
gnunet-gtk/src/setup/gnunet-setup-transport.c
Log:
-fix
Modified: gnunet-gtk/src/setup/gnunet-setup-transport.c
===================================================================
--- gnunet-gtk/src/setup/gnunet-setup-transport.c 2011-12-23 15:28:00 UTC
(rev 18774)
+++ gnunet-gtk/src/setup/gnunet-setup-transport.c 2011-12-23 15:33:43 UTC
(rev 18775)
@@ -177,7 +177,11 @@
in = (const struct sockaddr_in *) addr;
/* set internal IP address */
- inet_ntop (AF_INET, &in->sin_addr, buf, sizeof (buf));
+ if (NULL == inet_ntop (AF_INET, &in->sin_addr, buf, sizeof (buf)))
+ {
+ GNUNET_break (0);
+ return GNUNET_OK;
+ }
GNUNET_CONFIGURATION_set_value_string (cfg, "nat", "INTERNAL_ADDRESS", buf);
entry =
GTK_ENTRY (GNUNET_SETUP_get_object
@@ -202,7 +206,6 @@
static void
set_external_ipv4 (void *cls, const struct in_addr *addr)
{
- struct in_addr ia;
char buf[INET_ADDRSTRLEN];
GObject *o;
GtkEntry *entry;
@@ -226,7 +229,11 @@
}
/* set external IP address */
- inet_ntop (AF_INET, &ia, buf, sizeof (buf));
+ if (NULL == inet_ntop (AF_INET, addr, buf, sizeof (buf)))
+ {
+ GNUNET_break (0);
+ return;
+ }
if (NULL != cfg)
GNUNET_CONFIGURATION_set_value_string (cfg, "nat", "EXTERNAL_ADDRESS",
buf);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18775 - gnunet-gtk/src/setup,
gnunet <=