aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/polarssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vtls/polarssl.c')
-rw-r--r--lib/vtls/polarssl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/vtls/polarssl.c b/lib/vtls/polarssl.c
index 1a9421d82..e5346ce3d 100644
--- a/lib/vtls/polarssl.c
+++ b/lib/vtls/polarssl.c
@@ -819,9 +819,7 @@ void Curl_polarssl_cleanup(void)
int Curl_polarssl_data_pending(const struct connectdata *conn, int sockindex)
{
- ssl_context *ssl =
- (ssl_context *)&conn->ssl[sockindex].ssl;
- return ssl->in_msglen != 0;
+ return ssl_get_bytes_avail(&conn->ssl[sockindex].ssl) != 0;
}
#endif /* USE_POLARSSL */