aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-15 20:10:10 +1100
committerLars Ingebrigtsen2016-02-15 20:10:10 +1100
commit2d7af7e206c746bc774ae34de88dc2c20ea1b07d (patch)
tree9837969ea99ea9d2d8926b5dcc009bd41a3818f4
parent9c74f2fea6bfa6bc38358835539944017cf35917 (diff)
downloademacs-2d7af7e206c746bc774ae34de88dc2c20ea1b07d.tar.gz
emacs-2d7af7e206c746bc774ae34de88dc2c20ea1b07d.zip
Protect against initial handshake failures
* src/process.c (connect_network_socket): Mark the connection as failed if the handshake didn't succeed yet. This should be reworked later.
-rw-r--r--src/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index e8900715158..f1c066f4671 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3332,7 +3332,8 @@ void connect_network_socket (Lisp_Object proc, Lisp_Object ip_addresses)
3332 boot = Fgnutls_boot (proc, XCAR (params), XCDR (params)); 3332 boot = Fgnutls_boot (proc, XCAR (params), XCDR (params));
3333 p->gnutls_boot_parameters = Qnil; 3333 p->gnutls_boot_parameters = Qnil;
3334 3334
3335 if (NILP (boot) || STRINGP (boot)) 3335 if (NILP (boot) || STRINGP (boot) ||
3336 p->gnutls_initstage != GNUTLS_STAGE_READY)
3336 { 3337 {
3337 deactivate_process (proc); 3338 deactivate_process (proc);
3338 if (NILP (boot)) 3339 if (NILP (boot))