]> git.ipfire.org Git - thirdparty/openssl.git/commit
die() in .tmpl file should not be silently ignored.
authorAlexandr Nedvedicky <sashan@openssl.org>
Tue, 26 Nov 2024 08:05:09 +0000 (09:05 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 29 Nov 2024 16:08:21 +0000 (17:08 +0100)
commit6f667f4a241f928b2fec9f1d8bac8359c97a7f0d
tree626c18be9906061230280421a0bfade74aa2abd7
parenta58b41f9bc4dd64403143df8117d670f1a8acae0
die() in .tmpl file should not be silently ignored.

call to die() in perl templates is currently ignored.
any error printed by die() commad appears in template
output.

In order to make sure die() terminates processing we
must ensure we emite `undef` value. This is ensured
by adding a `BROKEN` callback to `fill_in()` Template
method. The callback must return undef to stop processing.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26064)

(cherry picked from commit 578760bb6aae6a9d7f3805eea66bab124d06c9b0)
configdata.pm.in
util/perl/OpenSSL/Template.pm