summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/x509.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/x509.c b/src/usr.bin/openssl/x509.c
index 0e4d7dcd77..4bf976ce55 100644
--- a/src/usr.bin/openssl/x509.c
+++ b/src/usr.bin/openssl/x509.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509.c,v 1.3 2015/06/20 01:07:25 doug Exp $ */ 1/* $OpenBSD: x509.c,v 1.4 2015/07/19 03:18:10 doug Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -304,6 +304,7 @@ x509_main(int argc, char **argv)
304 } else if (strcmp(*argv, "-set_serial") == 0) { 304 } else if (strcmp(*argv, "-set_serial") == 0) {
305 if (--argc < 1) 305 if (--argc < 1)
306 goto bad; 306 goto bad;
307 M_ASN1_INTEGER_free(sno);
307 if (!(sno = s2i_ASN1_INTEGER(NULL, *(++argv)))) 308 if (!(sno = s2i_ASN1_INTEGER(NULL, *(++argv))))
308 goto bad; 309 goto bad;
309 } else if (strcmp(*argv, "-addtrust") == 0) { 310 } else if (strcmp(*argv, "-addtrust") == 0) {