diff options
| author | Lars Ingebrigtsen | 2016-02-15 20:10:10 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-15 20:10:10 +1100 |
| commit | 2d7af7e206c746bc774ae34de88dc2c20ea1b07d (patch) | |
| tree | 9837969ea99ea9d2d8926b5dcc009bd41a3818f4 | |
| parent | 9c74f2fea6bfa6bc38358835539944017cf35917 (diff) | |
| download | emacs-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.c | 3 |
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)) |