diff options
Diffstat (limited to 'apps/engine.c')
| -rw-r--r-- | apps/engine.c | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/apps/engine.c b/apps/engine.c index 1b0f64309c6f..c83bdfc150c3 100644 --- a/apps/engine.c +++ b/apps/engine.c @@ -1,5 +1,5 @@  /* - * Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2000-2025 The OpenSSL Project Authors. All Rights Reserved.   *   * Licensed under the Apache License 2.0 (the "License").  You may not use   * this file except in compliance with the License.  You can obtain a copy @@ -352,10 +352,12 @@ int engine_main(int argc, char **argv)              test_avail++;              break;          case OPT_PRE: -            sk_OPENSSL_STRING_push(pre_cmds, opt_arg()); +            if (sk_OPENSSL_STRING_push(pre_cmds, opt_arg()) <= 0) +                goto end;              break;          case OPT_POST: -            sk_OPENSSL_STRING_push(post_cmds, opt_arg()); +            if (sk_OPENSSL_STRING_push(post_cmds, opt_arg()) <= 0) +                goto end;              break;          }      } | 
