Fix indefinite length encoding so EOC correctly updates
[openssl.git] / crypto / pkcs7 / pk7_smime.c
index b170fe2..333a8aa 100644 (file)
@@ -125,7 +125,7 @@ PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
                }
        }
 
-       if (flags & PKCS7_PARTSIGN)
+       if (flags & PKCS7_STREAM)
                return p7;
 
        if (!(p7bio = PKCS7_dataInit(p7, NULL))) {