Fix some mostly harmless warnings from LLVM static analysis

This commit is contained in:
Cameron Gutman
2014-10-21 00:36:30 -04:00
parent 127c53e341
commit 97f968fb0d
3 changed files with 9 additions and 21 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int years) {
RSA *rsa;
X509_NAME *name = NULL;
if ((pkeyp == NULL) || (*pkeyp == NULL)) {
if (*pkeyp == NULL) {
if ((pk=EVP_PKEY_new()) == NULL) {
abort();
return(0);
@@ -92,7 +92,7 @@ int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int years) {
pk = *pkeyp;
}
if ((x509p == NULL) || (*x509p == NULL)) {
if (*x509p == NULL) {
if ((x = X509_new()) == NULL) {
goto err;
}