projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Continue standardisation of malloc handling in apps
[openssl.git]
/
apps
/
x509.c
diff --git
a/apps/x509.c
b/apps/x509.c
index ff1e8cbe82119e08b2adcf94110cf9946dccf8ad..7155b332468fced1fdca7aca369bbc8b63072ae2 100644
(file)
--- a/
apps/x509.c
+++ b/
apps/x509.c
@@
-590,7
+590,7
@@
int x509_main(int argc, char **argv)
if (sno == NULL) {
sno = ASN1_INTEGER_new();
- if (
!sno
|| !rand_serial(NULL, sno))
+ if (
sno == NULL
|| !rand_serial(NULL, sno))
goto end;
if (!X509_set_serialNumber(x, sno))
goto end;