kdc: fix dh->q allocation check in get_dh_param()

Thanks to Doug Nazar <nazard@nazar.ca> for spotting this!

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12986

Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Stefan Metzmacher
2017-08-29 07:24:35 +02:00
committed by Nico Williams
parent 8c18131c13
commit a79b59ba27

View File

@@ -353,7 +353,7 @@ get_dh_param(krb5_context context,
if (dhparam.q) {
dh->q = integer_to_BN(context, "DH p-1 factor", dhparam.q);
if (dh->g == NULL)
if (dh->q == NULL)
goto out;
}