Commit d285b541 authored by Matt Caswell's avatar Matt Caswell
Browse files

Avoid a double-free in crl2pl7



The variable |crtflst| could get double freed in an error path.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent a45dca66
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -84,10 +84,8 @@ int crl2pkcs7_main(int argc, char **argv)
            if ((certflst == NULL)
                && (certflst = sk_OPENSSL_STRING_new_null()) == NULL)
                goto end;
            if (!sk_OPENSSL_STRING_push(certflst, opt_arg())) {
                sk_OPENSSL_STRING_free(certflst);
            if (!sk_OPENSSL_STRING_push(certflst, opt_arg()))
                goto end;
            }
            break;
        }
    }