diff options
Diffstat (limited to 'apps/engine.c')
-rw-r--r-- | apps/engine.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/engine.c b/apps/engine.c index b539ec51db..c11c6a2911 100644 --- a/apps/engine.c +++ b/apps/engine.c @@ -353,10 +353,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; } } |