projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check non-option arguments
[openssl.git]
/
apps
/
s_server.c
diff --git
a/apps/s_server.c
b/apps/s_server.c
index 24dffeab016cc58d356a5fe913f8ee526ec3424d..55a300beac5de196a2a2a962753d4f81c4e37a47 100644
(file)
--- a/
apps/s_server.c
+++ b/
apps/s_server.c
@@
-1660,8
+1660,11
@@
int s_server_main(int argc, char *argv[])
break;
}
}
+
+ /* No extra arguments. */
argc = opt_num_rest();
- argv = opt_rest();
+ if (argc != 0)
+ goto opthelp;
#ifndef OPENSSL_NO_NEXTPROTONEG
if (min_version == TLS1_3_VERSION && next_proto_neg_in != NULL) {