aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/openssl/crypto/comp/c_zlib.c
diff options
context:
space:
mode:
authortpashkin <tpashkin@yandex-team.ru>2022-02-10 16:46:42 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:42 +0300
commit656921707c02b816d730f31c1fdc1d615adbfe00 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /contrib/libs/openssl/crypto/comp/c_zlib.c
parent5475379a04e37df30085bd1724f1c57e3f40996f (diff)
downloadydb-656921707c02b816d730f31c1fdc1d615adbfe00.tar.gz
Restoring authorship annotation for <tpashkin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/openssl/crypto/comp/c_zlib.c')
-rw-r--r--contrib/libs/openssl/crypto/comp/c_zlib.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/contrib/libs/openssl/crypto/comp/c_zlib.c b/contrib/libs/openssl/crypto/comp/c_zlib.c
index 016c932ab1..b819337913 100644
--- a/contrib/libs/openssl/crypto/comp/c_zlib.c
+++ b/contrib/libs/openssl/crypto/comp/c_zlib.c
@@ -13,9 +13,9 @@
#include <openssl/objects.h>
#include "internal/comp.h"
#include <openssl/err.h>
-#include "crypto/cryptlib.h"
+#include "crypto/cryptlib.h"
#include "internal/bio.h"
-#include "comp_local.h"
+#include "comp_local.h"
COMP_METHOD *COMP_zlib(void);
@@ -598,28 +598,28 @@ static long bio_zlib_ctrl(BIO *b, int cmd, long num, void *ptr)
BIO_copy_next_retry(b);
break;
- case BIO_CTRL_WPENDING:
- if (ctx->obuf == NULL)
- return 0;
-
- if (ctx->odone) {
- ret = ctx->ocount;
- } else {
- ret = ctx->ocount;
- if (ret == 0)
- /* Unknown amount pending but we are not finished */
- ret = 1;
- }
- if (ret == 0)
- ret = BIO_ctrl(next, cmd, num, ptr);
- break;
-
- case BIO_CTRL_PENDING:
- ret = ctx->zin.avail_in;
- if (ret == 0)
- ret = BIO_ctrl(next, cmd, num, ptr);
- break;
-
+ case BIO_CTRL_WPENDING:
+ if (ctx->obuf == NULL)
+ return 0;
+
+ if (ctx->odone) {
+ ret = ctx->ocount;
+ } else {
+ ret = ctx->ocount;
+ if (ret == 0)
+ /* Unknown amount pending but we are not finished */
+ ret = 1;
+ }
+ if (ret == 0)
+ ret = BIO_ctrl(next, cmd, num, ptr);
+ break;
+
+ case BIO_CTRL_PENDING:
+ ret = ctx->zin.avail_in;
+ if (ret == 0)
+ ret = BIO_ctrl(next, cmd, num, ptr);
+ break;
+
default:
ret = BIO_ctrl(next, cmd, num, ptr);
break;