Blame SOURCES/coverity_scan.patch

5fd609
diff --git a/src/dh_crypto.c b/src/dh_crypto.c
5fd609
index a847c6a2..1eb94307 100644
5fd609
--- a/src/dh_crypto.c
5fd609
+++ b/src/dh_crypto.c
5fd609
@@ -341,8 +341,16 @@ int ssh_dh_set_parameters(struct dh_ctx *ctx,
5fd609
             goto done;
5fd609
         }
5fd609
 
5fd609
-        OSSL_PARAM_BLD_push_BN(param_bld, OSSL_PKEY_PARAM_FFC_P, modulus);
5fd609
-        OSSL_PARAM_BLD_push_BN(param_bld, OSSL_PKEY_PARAM_FFC_G, generator);
5fd609
+        rc = OSSL_PARAM_BLD_push_BN(param_bld, OSSL_PKEY_PARAM_FFC_P, modulus);
5fd609
+        if (rc != 1) {
5fd609
+            rc = SSH_ERROR;
5fd609
+            goto done;
5fd609
+        }
5fd609
+        rc = OSSL_PARAM_BLD_push_BN(param_bld, OSSL_PKEY_PARAM_FFC_G, generator);
5fd609
+        if (rc != 1) {
5fd609
+            rc = SSH_ERROR;
5fd609
+            goto done;
5fd609
+        }
5fd609
         params = OSSL_PARAM_BLD_to_param(param_bld);
5fd609
         if (params == NULL) {
5fd609
             OSSL_PARAM_BLD_free(param_bld);