Fix BIO control function implementation
Resolves: rhbz#2004714
This commit is contained in:
parent
edcfce8545
commit
f39d19bb2b
21
libserf-1.3.9-bio-ctrl.patch
Normal file
21
libserf-1.3.9-bio-ctrl.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/buckets/ssl_buckets.c b/buckets/ssl_buckets.c
|
||||
index b01e5359db08..3c8b7e2a685f 100644
|
||||
--- a/buckets/ssl_buckets.c
|
||||
+++ b/buckets/ssl_buckets.c
|
||||
@@ -407,7 +407,7 @@ static int bio_bucket_destroy(BIO *bio)
|
||||
|
||||
static long bio_bucket_ctrl(BIO *bio, int cmd, long num, void *ptr)
|
||||
{
|
||||
- long ret = 1;
|
||||
+ long ret = 0;
|
||||
|
||||
switch (cmd) {
|
||||
default:
|
||||
@@ -415,6 +415,7 @@ static long bio_bucket_ctrl(BIO *bio, int cmd, long num, void *ptr)
|
||||
break;
|
||||
case BIO_CTRL_FLUSH:
|
||||
/* At this point we can't force a flush. */
|
||||
+ ret = 1;
|
||||
break;
|
||||
case BIO_CTRL_PUSH:
|
||||
case BIO_CTRL_POP:
|
||||
@ -1,6 +1,6 @@
|
||||
Name: libserf
|
||||
Version: 1.3.9
|
||||
Release: 25%{?dist}
|
||||
Release: 26%{?dist}
|
||||
Summary: High-Performance Asynchronous HTTP Client Library
|
||||
License: ASL 2.0
|
||||
URL: http://serf.apache.org/
|
||||
@ -12,6 +12,9 @@ Patch0: %{name}-norpath.patch
|
||||
Patch1: %{name}-python3.patch
|
||||
Patch2: %{name}-1.3.9-cmake.patch
|
||||
Patch3: %{name}-1.3.9-errgetfunc.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2004714
|
||||
# Patch BIO to work with openssl 3
|
||||
Patch4: %{name}-1.3.9-bio-ctrl.patch
|
||||
|
||||
%description
|
||||
The serf library is a C-based HTTP client library built upon the Apache
|
||||
@ -59,6 +62,10 @@ rm -rf %{buildroot}%{_datadir}
|
||||
%{_libdir}/pkgconfig/serf*.pc
|
||||
|
||||
%changelog
|
||||
* Fri Sep 17 2021 Tomas Korbar <tkorbar@redhat.com> - 1.3.9-26
|
||||
- Fix BIO control function implementation
|
||||
- Resolves: rhbz#2004714
|
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.3.9-25
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
Loading…
Reference in New Issue
Block a user