From 662746a59d04618a235c3399bd4507ef0c011184 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 4 Jul 2018 18:39:52 +0100 Subject: [PATCH] noip.c (do_implicit_bind): Set wildcard port if we find a match. Otherwise it's left uninitialized, and there is sadness. --- noip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/noip.c b/noip.c index b9c040b..8dac7e4 100644 --- a/noip.c +++ b/noip.c @@ -1128,6 +1128,7 @@ static int do_implicit_bind(int sk, const struct sockaddr *sa, unsigned f) D( fprintf(stderr, "noip(%d): match!\n", pid); ) addr.sa.sa_family = sa->sa_family; ipaddr_to_sockaddr(&addr.sa, &i->bindaddr); + port_to_sockaddr(&addr.sa, 0); goto found; } } -- 2.11.0