Mkae CT_log_new_from_base64 always return 0 on failure
[openssl.git] / crypto / ct / ct_b64.c
index 80bd45e2d9934d75be2e80f472769db01813f31b..d13d8f2af2e99849ea6568af2d77e699ba049ff0 100644 (file)
@@ -149,7 +149,7 @@ int CTLOG_new_from_base64(CTLOG **ct_log, const char *pkey_base64, const char *n
     *ct_log = CTLOG_new(pkey, name);
     if (*ct_log == NULL) {
         EVP_PKEY_free(pkey);
-        return -1;
+        return 0;
     }
 
     return 1;