From ac71deeb88244eec767c2d7d990fb0b94f96e649 Mon Sep 17 00:00:00 2001 From: "Ying-Chun Liu (PaulLiu)" Date: Fri, 29 Apr 2016 13:56:58 +0800 Subject: [PATCH] iodined.c: Fix stun timeout. Signed-off-by: Ying-Chun Liu (PaulLiu) --- src/iodined.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iodined.c b/src/iodined.c index 5f334c6..f4200d8 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -252,7 +252,7 @@ get_external_ip_by_stun(struct in_addr *ip, const char *stun_server) if (res2 == 0) { /* timeout */ res = 7; - continue; + break; } if (res2 != 1) { res = 8;