Missing return values (Coverity ID 204).
authorBen Laurie <ben@openssl.org>
Sat, 13 Dec 2008 17:19:40 +0000 (17:19 +0000)
committerBen Laurie <ben@openssl.org>
Sat, 13 Dec 2008 17:19:40 +0000 (17:19 +0000)
crypto/comp/c_zlib.c

index 0f34597..0e503bf 100644 (file)
@@ -727,6 +727,7 @@ static long bio_zlib_ctrl(BIO *b, int cmd, long num, void *ptr)
        case BIO_CTRL_RESET:
                ctx->ocount = 0;
                ctx->odone = 0;
+               ret = 1;
                break;
 
        case BIO_CTRL_FLUSH:
@@ -771,7 +772,7 @@ static long bio_zlib_ctrl(BIO *b, int cmd, long num, void *ptr)
                                }
                        ctx->obufsize = obs;
                        }
-
+               ret = 1;
                break;
 
        case BIO_C_DO_STATE_MACHINE: