File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1613,9 +1613,9 @@ _httpTLSRead(http_t *http, // I - Connection to server
16131613
16141614 result = gnutls_record_recv (http -> tls , buf , (size_t )len );
16151615
1616- // Convert GNU TLS error to errno value...
16171616 if (result < 0 )
16181617 {
1618+ // Convert GNU TLS error to errno value...
16191619 switch (result )
16201620 {
16211621 case GNUTLS_E_INTERRUPTED :
@@ -1644,6 +1644,8 @@ _httpTLSRead(http_t *http, // I - Connection to server
16441644 errno = EPIPE ;
16451645 break ;
16461646 }
1647+
1648+ result = -1 ;
16471649 }
16481650
16491651 return ((int )result );
@@ -2051,6 +2053,8 @@ _httpTLSWrite(http_t *http, // I - Connection to server
20512053 errno = EPIPE ;
20522054 break ;
20532055 }
2056+
2057+ result = -1 ;
20542058 }
20552059
20562060 DEBUG_printf ("5_httpTLSWrite: Returning %d." , (int )result );
You can’t perform that action at this time.
0 commit comments