Skip to content

Commit

Permalink
Fix segfault if -w/-W options specified without any ssl proxyspec
Browse files Browse the repository at this point in the history
Fixes issue droe#271 reported by @faperea
  • Loading branch information
sonertari committed Apr 8, 2020
1 parent 065f8cf commit c6f3a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ main(int argc, char *argv[])
"certs.\n", DFLT_LEAFKEY_RSABITS);
}
}
if (opts->certgendir) {
if (opts->certgendir && opts->leafkey) {
char *keyid, *keyfn;
int prv;
FILE *keyf;
Expand Down

0 comments on commit c6f3a5b

Please sign in to comment.