diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-02 13:34:18 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-02 13:34:18 +0200 |
commit | 33662bbfe24bac65293f7b8c958f0c05c8cfc90a (patch) | |
tree | 62f64073c8aeffda05d7dc0fb7921e3188524e4a /lib/system | |
parent | c801a15bca9ea8f3f7abd4be48bebd36c54eeba2 (diff) | |
download | gnutls-33662bbfe24bac65293f7b8c958f0c05c8cfc90a.tar.gz |
fastopen: improved error checking at connect()
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/fastopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/fastopen.c b/lib/system/fastopen.c index 1c785e3f9b..c8655958d4 100644 --- a/lib/system/fastopen.c +++ b/lib/system/fastopen.c @@ -55,7 +55,7 @@ tfo_send(gnutls_transport_ptr_t ptr, const void *buf, size_t len) int ret; ret = connect(fd, (struct sockaddr*)&p->connect_addr, p->connect_addrlen); - if (errno == ENOTCONN || errno == EINPROGRESS) { + if (ret == -1 && (errno == EINPROGRESS)) { gnutls_assert(); errno = EAGAIN; } |