Skip to content

Commit eb0b17b

Browse files
Merge pull request #1507 from zdohnal/tls-gnutls-dont-check-errno
tls-gnutls.c: Do not check for errno after I/O operations
2 parents bc7e16a + 56d1242 commit eb0b17b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cups/tls-gnutls.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ _httpTLSRead(http_t *http, // I - Connection to server
16131613

16141614
result = gnutls_record_recv(http->tls, buf, (size_t)len);
16151615

1616-
if (result < 0 && !errno)
1616+
if (result < 0)
16171617
{
16181618
// Convert GNU TLS error to errno value...
16191619
switch (result)
@@ -2022,7 +2022,7 @@ _httpTLSWrite(http_t *http, // I - Connection to server
20222022

20232023
result = gnutls_record_send(http->tls, buf, (size_t)len);
20242024

2025-
if (result < 0 && !errno)
2025+
if (result < 0)
20262026
{
20272027
// Convert GNU TLS error to errno value...
20282028
switch (result)

0 commit comments

Comments
 (0)