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.
This commit is contained in:
parent
9c74f2fea6
commit
2d7af7e206
1 changed files with 2 additions and 1 deletions
|
@ -3332,7 +3332,8 @@ void connect_network_socket (Lisp_Object proc, Lisp_Object ip_addresses)
|
|||
boot = Fgnutls_boot (proc, XCAR (params), XCDR (params));
|
||||
p->gnutls_boot_parameters = Qnil;
|
||||
|
||||
if (NILP (boot) || STRINGP (boot))
|
||||
if (NILP (boot) || STRINGP (boot) ||
|
||||
p->gnutls_initstage != GNUTLS_STAGE_READY)
|
||||
{
|
||||
deactivate_process (proc);
|
||||
if (NILP (boot))
|
||||
|
|
Loading…
Add table
Reference in a new issue