X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Fx509.c;h=9e5101259f158bf67920e3bced7b77d407641e64;hp=05aa5547cd9f34243eb1c4e2d7d62a6510326b43;hb=08f6ae5b2896a22e1e16de3e363d1ea314700b0b;hpb=c74aea8d6ccdf07ce826a9451887739b8aa64096 diff --git a/apps/x509.c b/apps/x509.c index 05aa5547cd..9e5101259f 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -261,6 +261,10 @@ int x509_main(int argc, char **argv) CAserial = opt_arg(); break; case OPT_SET_SERIAL: + if (sno != NULL) { + /* Cannot be supplied twice */ + goto opthelp; + } if ((sno = s2i_ASN1_INTEGER(NULL, opt_arg())) == NULL) goto opthelp; break;