aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.h
diff options
context:
space:
mode:
authorPaul Eggert2016-05-23 08:56:42 -0700
committerPaul Eggert2016-05-23 08:57:12 -0700
commit918ef71538fd43049496e4370eba63e3096a4933 (patch)
tree19e31312429e267a3bcec128fb7825f1e476103c /src/process.h
parentc6493c68f8fd6a5e6893eb3837a1a27f8d8a98a8 (diff)
downloademacs-918ef71538fd43049496e4370eba63e3096a4933.tar.gz
emacs-918ef71538fd43049496e4370eba63e3096a4933.zip
Don’t use only last protocol from getaddrinfo
Problem reported by Ken Brown in: http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00483.html * src/process.c (conv_addrinfo_to_lisp): New function. (connect_network_socket): Arg is now a list of addrinfos, not merely IP addresses. All uses changed. Use protocol from each addrinfo. (Fmake_network_process): Accumulate protocols into addrinfos rather than just using the last one found. (check_for_dns): Accumulate protocols here, too. * src/process.h (struct Lisp_Process): Remove ai_protocol; no longer needed.
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/process.h b/src/process.h
index 20593f5e8fa..a5f690dc55f 100644
--- a/src/process.h
+++ b/src/process.h
@@ -173,8 +173,6 @@ struct Lisp_Process
173 int port; 173 int port;
174 /* The socket type. */ 174 /* The socket type. */
175 int socktype; 175 int socktype;
176 /* The socket protocol. */
177 int ai_protocol;
178 176
179#ifdef HAVE_GETADDRINFO_A 177#ifdef HAVE_GETADDRINFO_A
180 /* Whether the socket is waiting for response from an asynchronous 178 /* Whether the socket is waiting for response from an asynchronous