summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bss_acpt.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-01-24 16:07:51 +0000
committerMatt Caswell <matt@openssl.org>2020-02-04 14:39:29 +0000
commit6d53ad6b5cf726d92860e973d7bc8c1930762086 (patch)
treecced1a142b3235654d6759de1234f8461593dcde /crypto/bio/bss_acpt.c
parentd924dbf4ae127c68463bcbece04b6e06abc58928 (diff)
Teach more BIOs how to handle BIO_CTRL_EOF
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/10907)
Diffstat (limited to 'crypto/bio/bss_acpt.c')
-rw-r--r--crypto/bio/bss_acpt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/bio/bss_acpt.c b/crypto/bio/bss_acpt.c
index 3d2937594e..a3b3f21cab 100644
--- a/crypto/bio/bss_acpt.c
+++ b/crypto/bio/bss_acpt.c
@@ -526,7 +526,12 @@ static long acpt_ctrl(BIO *b, int cmd, long num, void *ptr)
break;
case BIO_CTRL_DUP:
break;
-
+ case BIO_CTRL_EOF:
+ if (b->next_bio == NULL)
+ ret = 0;
+ else
+ ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
+ break;
default:
ret = 0;
break;