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:41 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:41 +0300
commit5475379a04e37df30085bd1724f1c57e3f40996f (patch)
tree95d77e29785a3bd5be6260b1c9d226a551376ecf /contrib/libs/openssl/crypto/comp/c_zlib.c
parentc3d34b9b40eb534dfd2c549342274f3d61844688 (diff)
downloadydb-5475379a04e37df30085bd1724f1c57e3f40996f.tar.gz
Restoring authorship annotation for <tpashkin@yandex-team.ru>. Commit 1 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 b819337913..016c932ab1 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;