projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69488fa
)
improve command line argument checking
author
Nils Larsch
<nils@openssl.org>
Tue, 10 May 2005 09:52:39 +0000
(09:52 +0000)
committer
Nils Larsch
<nils@openssl.org>
Tue, 10 May 2005 09:52:39 +0000
(09:52 +0000)
PR: 1061
apps/engine.c
patch
|
blob
|
history
diff --git
a/apps/engine.c
b/apps/engine.c
index 12283d0aed6723886f964dc546da8eb89993b95a..e8a599f9e590d9a2fece662b7296e0c8b1335f66 100644
(file)
--- a/
apps/engine.c
+++ b/
apps/engine.c
@@
-387,11
+387,15
@@
int MAIN(int argc, char **argv)
else if (strcmp(*argv,"-pre") == 0)
{
argc--; argv++;
+ if (argc == 0)
+ goto skip_arg_loop;
sk_push(pre_cmds,*argv);
}
else if (strcmp(*argv,"-post") == 0)
{
argc--; argv++;
+ if (argc == 0)
+ goto skip_arg_loop;
sk_push(post_cmds,*argv);
}
else if ((strncmp(*argv,"-h",2) == 0) ||