Blame SOURCES/gnutls-3.3.8-dh-fips-tests2.patch

873a72
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c
873a72
index 0653fcc..66815f0 100644
873a72
--- a/lib/nettle/pk.c
873a72
+++ b/lib/nettle/pk.c
873a72
@@ -929,7 +929,7 @@ int _gnutls_dh_generate_key(gnutls_dh_params_t dh_params,
873a72
 	priv_key->data = NULL;
873a72
 	pub_key->data = NULL;
873a72
 
873a72
-	ret = _gnutls_pk_generate_keys(GNUTLS_PK_DH, 0, &params);
873a72
+	ret = _gnutls_pk_generate_keys(GNUTLS_PK_DH, dh_params->q_bits, &params);
873a72
 	if (ret < 0) {
873a72
 		return gnutls_assert_val(ret);
873a72
 	}