don't bother seeing q if not sent

This commit is contained in:
Love Hornquist Astrand
2013-04-29 11:42:46 -07:00
parent e8317b955f
commit 19f9fdbcea

View File

@@ -381,9 +381,12 @@ get_dh_param(krb5_context context,
dh->g = integer_to_BN(context, "DH base", &dhparam.g); dh->g = integer_to_BN(context, "DH base", &dhparam.g);
if (dh->g == NULL) if (dh->g == NULL)
goto out; goto out;
dh->q = integer_to_BN(context, "DH p-1 factor", &dhparam.q);
if (dh->g == NULL) if (dhparam.q) {
goto out; dh->q = integer_to_BN(context, "DH p-1 factor", dhparam.q);
if (dh->g == NULL)
goto out;
}
{ {
heim_integer glue; heim_integer glue;