diff options
-rw-r--r-- | dirmngr/dns-stuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c index 694c04b6c..b3ad9bcd1 100644 --- a/dirmngr/dns-stuff.c +++ b/dirmngr/dns-stuff.c @@ -253,7 +253,6 @@ resolve_name_adns (const char *name, unsigned short port, adns_answer *answer = NULL; int count; - (void)port; (void)want_family; *r_dai = NULL; @@ -319,6 +318,7 @@ resolve_name_adns (const char *name, unsigned short port, dai->protocol = want_socktype == SOCK_STREAM? IPPROTO_TCP : IPPROTO_UDP; dai->addrlen = len; memcpy (dai->addr, &addr->addr.sa, len); + ((struct sockaddr_in *) dai->addr)->sin_port = htons (port); dai->next = daihead; daihead = dai; err = 0; |