diff options
author | Matt Caswell <matt@openssl.org> | 2016-08-24 11:22:47 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-08-24 11:22:47 +0100 |
commit | 08f6ae5b2896a22e1e16de3e363d1ea314700b0b (patch) | |
tree | 97d2c6f63c58d127ee059da8fd326a551cd1bc69 /apps/req.c | |
parent | c74aea8d6ccdf07ce826a9451887739b8aa64096 (diff) |
Fix some resource leaks in the apps
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/req.c b/apps/req.c index 2666124546..fb37f7dfec 100644 --- a/apps/req.c +++ b/apps/req.c @@ -295,6 +295,10 @@ int req_main(int argc, char **argv) days = atoi(opt_arg()); break; case OPT_SET_SERIAL: + if (serial != NULL) { + /* Cannot be supplied twice */ + goto opthelp; + } serial = s2i_ASN1_INTEGER(NULL, opt_arg()); if (serial == NULL) goto opthelp; |