Provide a function to test whether we have unread records pending
[openssl.git] / ssl / ssl_lib.c
index f0e8639d61e4f645df5d92aa6a36e3b1f6ecf2fd..581941ecb3099bd6fe4488a8d31b5159682cab48 100644 (file)
@@ -1323,7 +1323,7 @@ int SSL_has_pending(const SSL *s)
      * data. That data may not result in any application data, or we may fail
      * to parse the records for some reason.
      */
-    if (SSL_pending(s))
+    if (RECORD_LAYER_processed_read_pending(&s->rlayer))
         return 1;
 
     return RECORD_LAYER_read_pending(&s->rlayer);