Make sure *outl is always initialized in EVP_EncryptUpdate().
authorDr. Stephen Henson <steve@openssl.org>
Fri, 27 Jul 2001 02:24:47 +0000 (02:24 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 27 Jul 2001 02:24:47 +0000 (02:24 +0000)
crypto/evp/evp_enc.c

index 9a7a553bef292ebfc368da55918639c064294ee0..87e71e3c7feb05ced52078ccf5fbb46f3e5c44d5 100644 (file)
@@ -197,6 +197,8 @@ int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl,
                        *outl=bl;
                        }
                }
+       else
+               *outl = 0;
        i=inl&(bl-1);
        inl-=i;
        if (inl > 0)