diff options
Diffstat (limited to 'src/lib/libcrypto/comp/c_rle.c')
-rw-r--r-- | src/lib/libcrypto/comp/c_rle.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/comp/c_rle.c b/src/lib/libcrypto/comp/c_rle.c index 214efe01b2..7004c35029 100644 --- a/src/lib/libcrypto/comp/c_rle.c +++ b/src/lib/libcrypto/comp/c_rle.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: c_rle.c,v 1.7 2014/06/12 15:49:28 deraadt Exp $ */ | 1 | /* $OpenBSD: c_rle.c,v 1.8 2014/11/03 16:58:28 tedu Exp $ */ |
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #include <string.h> | 4 | #include <string.h> |
@@ -27,10 +27,8 @@ static int | |||
27 | rle_compress_block(COMP_CTX *ctx, unsigned char *out, unsigned int olen, | 27 | rle_compress_block(COMP_CTX *ctx, unsigned char *out, unsigned int olen, |
28 | unsigned char *in, unsigned int ilen) | 28 | unsigned char *in, unsigned int ilen) |
29 | { | 29 | { |
30 | /* int i; */ | ||
31 | 30 | ||
32 | if (ilen == 0 || olen < (ilen - 1)) { | 31 | if (ilen == 0 || olen < (ilen - 1)) { |
33 | /* ZZZZZZZZZZZZZZZZZZZZZZ */ | ||
34 | return (-1); | 32 | return (-1); |
35 | } | 33 | } |
36 | 34 | ||
@@ -46,7 +44,6 @@ rle_expand_block(COMP_CTX *ctx, unsigned char *out, unsigned int olen, | |||
46 | int i; | 44 | int i; |
47 | 45 | ||
48 | if (olen < (ilen - 1)) { | 46 | if (olen < (ilen - 1)) { |
49 | /* ZZZZZZZZZZZZZZZZZZZZZZ */ | ||
50 | return (-1); | 47 | return (-1); |
51 | } | 48 | } |
52 | 49 | ||