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 9a7a553..87e71e3 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)