From: Mark Wooding Date: Wed, 4 Jul 2018 17:39:52 +0000 (+0100) Subject: noip.c (do_implicit_bind): Set wildcard port if we find a match. X-Git-Tag: 1.2.3~2 X-Git-Url: https://git.distorted.org.uk/~mdw/preload-hacks/commitdiff_plain/662746a59d04618a235c3399bd4507ef0c011184 noip.c (do_implicit_bind): Set wildcard port if we find a match. Otherwise it's left uninitialized, and there is sadness. --- 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; } }