mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix incorrect OpenSSL merge
This commit is contained in:
@@ -1886,7 +1886,7 @@ PHP_OPENSSL_API zend_string* php_openssl_encrypt(
|
||||
if (mode.is_aead && tag) {
|
||||
zend_string *tag_str = zend_string_alloc(tag_len, 0);
|
||||
|
||||
if (EVP_CIPHER_CTX_ctrl(cipher_ctx, mode.aead_get_tag_flag, tag_len, ZSTR_VAL(tag_str)) <= 0) {
|
||||
if (EVP_CIPHER_CTX_ctrl(cipher_ctx, mode.aead_get_tag_flag, tag_len, ZSTR_VAL(tag_str)) > 0) {
|
||||
ZSTR_VAL(tag_str)[tag_len] = '\0';
|
||||
ZSTR_LEN(tag_str) = tag_len;
|
||||
ZEND_TRY_ASSIGN_REF_NEW_STR(tag, tag_str);
|
||||
|
||||
Reference in New Issue
Block a user