Commit 94725cd531 for qemu.org

commit 94725cd531eea0c7f0d02b5d468b2eae7e8ae615
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date:   Mon Aug 31 16:09:26 2026 +0400

    crypto/x509-utils: don't double set errp

    qcrypto_x509_get_ecc_curve() already sets errp on failure.

    Fixes: e8317c4c9f68 ("crypto/x509-utils: Add helper functions for DIAG 320 subcode 2")
    Reviewed-by: Zhuoying Cai <zycai@linux.ibm.com>
    Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>

diff --git a/crypto/x509-utils.c b/crypto/x509-utils.c
index e4767f9838..34cbfca26b 100644
--- a/crypto/x509-utils.c
+++ b/crypto/x509-utils.c
@@ -325,7 +325,6 @@ int qcrypto_x509_check_ecc_curve_p521(uint8_t *cert, size_t size, Error **errp)

     curve_id = qcrypto_x509_get_ecc_curve(cert, size, errp);
     if (curve_id == -1) {
-        error_setg(errp, "Failed to get ECC curve");
         return -1;
     }