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:

committed by
Nico Williams

parent
8c18131c13
commit
a79b59ba27
@@ -353,7 +353,7 @@ get_dh_param(krb5_context context,
|
|||||||
|
|
||||||
if (dhparam.q) {
|
if (dhparam.q) {
|
||||||
dh->q = integer_to_BN(context, "DH p-1 factor", dhparam.q);
|
dh->q = integer_to_BN(context, "DH p-1 factor", dhparam.q);
|
||||||
if (dh->g == NULL)
|
if (dh->q == NULL)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user