Page MenuHome GnuPG

dirmngr-not-bind-specific-random-port.diff

Authored By
gniibe
Jun 19 2018, 10:01 AM
Size
611 B
Subscribers
None

dirmngr-not-bind-specific-random-port.diff

diff --git a/dirmngr/dns.c b/dirmngr/dns.c
index 908bf157a..9784866c4 100644
--- a/dirmngr/dns.c
+++ b/dirmngr/dns.c
@@ -7121,6 +7121,7 @@ static int dns_socket(struct sockaddr *local, int type, int *error_) {
if (type != SOCK_DGRAM)
return fd;
+#if 0
/*
* FreeBSD, Linux, OpenBSD, OS X, and Solaris use random ports by
* default. Though the ephemeral range is quite small on OS X
@@ -7146,6 +7147,7 @@ static int dns_socket(struct sockaddr *local, int type, int *error_) {
/* NB: continue to next bind statement */
}
+#endif
if (0 == bind(fd, local, dns_sa_len(local)))
return fd;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
212335

Event Timeline