]> code.delx.au - gnu-emacs/commit
Don’t use only last protocol from getaddrinfo
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 May 2016 15:56:42 +0000 (08:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 May 2016 15:57:12 +0000 (08:57 -0700)
commit918ef71538fd43049496e4370eba63e3096a4933
tree19e31312429e267a3bcec128fb7825f1e476103c
parentc6493c68f8fd6a5e6893eb3837a1a27f8d8a98a8
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.
src/process.c
src/process.h