[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34329 - gnunet/src/nat
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34329 - gnunet/src/nat |
Date: |
Fri, 3 Oct 2014 20:59:15 +0200 |
Author: grothoff
Date: 2014-10-03 20:59:15 +0200 (Fri, 03 Oct 2014)
New Revision: 34329
Modified:
gnunet/src/nat/nat_test.c
Log:
-return non-NULL even if we instantly fail
Modified: gnunet/src/nat/nat_test.c
===================================================================
--- gnunet/src/nat/nat_test.c 2014-10-03 18:56:13 UTC (rev 34328)
+++ gnunet/src/nat/nat_test.c 2014-10-03 18:59:15 UTC (rev 34329)
@@ -438,7 +438,6 @@
nh->adv_port = adv_port;
nh->report = report;
nh->report_cls = report_cls;
- nh->ttask = GNUNET_SCHEDULER_NO_TASK;
nh->status = GNUNET_NAT_ERROR_SUCCESS;
if (0 == bnd_port)
{
@@ -466,7 +465,7 @@
GNUNET_NETWORK_socket_close (nh->lsock);
nh->status = GNUNET_NAT_ERROR_INTERNAL_NETWORK_ERROR;
nh->ttask = GNUNET_SCHEDULER_add_now (&do_timeout, nh);
- return NULL;
+ return nh;
}
if (GNUNET_YES == is_tcp)
{
@@ -504,7 +503,7 @@
}
nh->status = GNUNET_NAT_ERROR_NAT_REGISTER_FAILED;
nh->ttask = GNUNET_SCHEDULER_add_now (&do_timeout, nh);
- return NULL;
+ return nh;
}
}
nh->ttask = GNUNET_SCHEDULER_add_delayed (timeout, &do_timeout, nh);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34329 - gnunet/src/nat,
gnunet <=