Remove always-true condition in php_conv_open()

This commit is contained in:
Niels Dossche 2023-12-11 20:07:34 +01:00
parent 5e02bca537
commit ddedd15eae

View file

@ -1188,9 +1188,7 @@ static php_conv *php_conv_open(int conv_mode, const HashTable *options, int pers
retval = pemalloc(sizeof(php_conv_base64_encode), persistent); retval = pemalloc(sizeof(php_conv_base64_encode), persistent);
if (lbchars != NULL) { if (lbchars != NULL) {
if (php_conv_base64_encode_ctor((php_conv_base64_encode *)retval, line_len, lbchars, lbchars_len, 1, persistent) != PHP_CONV_ERR_SUCCESS) { if (php_conv_base64_encode_ctor((php_conv_base64_encode *)retval, line_len, lbchars, lbchars_len, 1, persistent) != PHP_CONV_ERR_SUCCESS) {
if (lbchars != NULL) { pefree(lbchars, 0);
pefree(lbchars, 0);
}
goto out_failure; goto out_failure;
} }
pefree(lbchars, 0); pefree(lbchars, 0);