aboutsummaryrefslogtreecommitdiff
path: root/eperd/tcputil.c
diff options
context:
space:
mode:
Diffstat (limited to 'eperd/tcputil.c')
-rw-r--r--eperd/tcputil.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/eperd/tcputil.c b/eperd/tcputil.c
index 201f1eb..e1d4505 100644
--- a/eperd/tcputil.c
+++ b/eperd/tcputil.c
@@ -90,7 +90,11 @@ void tu_restart_connect(struct tu_env *env)
}
/* Immediate error? */
- printf("connect error\n");
+ if (!env->dns_curr)
+ {
+ /* Callback cleaned up */
+ return;
+ }
env->dns_curr= env->dns_curr->ai_next;
}