aboutsummaryrefslogtreecommitdiff
path: root/src/nat/gnunet-service-nat_mini.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/gnunet-service-nat_mini.c')
-rw-r--r--src/nat/gnunet-service-nat_mini.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nat/gnunet-service-nat_mini.c b/src/nat/gnunet-service-nat_mini.c
index efdc0988b..e5b9d021b 100644
--- a/src/nat/gnunet-service-nat_mini.c
+++ b/src/nat/gnunet-service-nat_mini.c
@@ -139,7 +139,7 @@ read_external_ipv4 (void *cls)
139 eh->buf, 139 eh->buf,
140 &addr)) 140 &addr))
141 { 141 {
142 if (0 != addr.s_addr) 142 if (0 == addr.s_addr)
143 eh->ret = GNUNET_NAT_ERROR_EXTERNAL_IP_ADDRESS_INVALID; /* got 0.0.0.0 */ 143 eh->ret = GNUNET_NAT_ERROR_EXTERNAL_IP_ADDRESS_INVALID; /* got 0.0.0.0 */
144 else 144 else
145 eh->ret = GNUNET_NAT_ERROR_SUCCESS; 145 eh->ret = GNUNET_NAT_ERROR_SUCCESS;
@@ -578,7 +578,8 @@ process_map_output (void *cls,
578 if (GNUNET_YES != mini->did_map) 578 if (GNUNET_YES != mini->did_map)
579 mini->ac (mini->ac_cls, 579 mini->ac (mini->ac_cls,
580 GNUNET_SYSERR, 580 GNUNET_SYSERR,
581 NULL, 0, 581 NULL,
582 0,
582 GNUNET_NAT_ERROR_UPNPC_PORTMAP_FAILED); 583 GNUNET_NAT_ERROR_UPNPC_PORTMAP_FAILED);
583 if (NULL == mini->refresh_task) 584 if (NULL == mini->refresh_task)
584 mini->refresh_task 585 mini->refresh_task