From a0aae68cf6f3383f248c0e1991973224f2e4498f Mon Sep 17 00:00:00 2001 From: Bodo Möller Date: Mon, 25 Dec 2000 18:40:46 +0000 Subject: Fix SSL_peek and SSL_pending. --- ssl/s3_lib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ssl/s3_lib.c') diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index f2bfb15a5a..47768cc281 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -782,8 +782,7 @@ SSL_CIPHER *ssl3_get_cipher(unsigned int u) int ssl3_pending(SSL *s) { - /* The problem is that it may not be the correct record type */ - return(s->s3->rrec.length); /* FIXME */ + return (s->s3->rrec.type == SSL3_RT_APPLICATION_DATA) ? s->s3->rrec.length : 0; } int ssl3_new(SSL *s) -- cgit v1.2.3