summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorLove Hornquist Astrand <lha@h5l.org>2013-04-29 11:42:46 -0700
committerAndrew Bartlett <abartlet@samba.org>2017-08-28 15:10:54 +0200
commitdd3e06f14ec1788a59e4c6ba4ea165fd77b9135e (patch)
treec375475fca072eb5c998129ba39c369753dafc3d /source4
parent9f245aafdca8397df7dc050e25cfd858aeb1cc7f (diff)
downloadsamba-dd3e06f14ec1788a59e4c6ba4ea165fd77b9135e.tar.gz
HEIMDAL: don't bother seeing q if not sent
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12986 Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from heimdal commit 19f9fdbcea11013cf13ac72c416f161ee55dee2b) Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Aug 28 15:10:54 CEST 2017 on sn-devel-144
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal/kdc/pkinit.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/heimdal/kdc/pkinit.c b/source4/heimdal/kdc/pkinit.c
index 3a9e8f266ce..c874847cffd 100644
--- a/source4/heimdal/kdc/pkinit.c
+++ b/source4/heimdal/kdc/pkinit.c
@@ -381,9 +381,12 @@ get_dh_param(krb5_context context,
dh->g = integer_to_BN(context, "DH base", &dhparam.g);
if (dh->g == NULL)
goto out;
- dh->q = integer_to_BN(context, "DH p-1 factor", &dhparam.q);
- if (dh->g == NULL)
- goto out;
+
+ if (dhparam.q) {
+ dh->q = integer_to_BN(context, "DH p-1 factor", dhparam.q);
+ if (dh->g == NULL)
+ goto out;
+ }
{
heim_integer glue;