diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-08-29 07:24:35 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-12-06 19:06:21 +0100 |
commit | 183e5d1e3dc306491c06f94c8c98e4882c64bc27 (patch) | |
tree | ab97b754785ce58effee73e26b6e4f3b680731eb /source4/heimdal | |
parent | 19606e4dc657b0baf3ea84deec9c01052e210a13 (diff) | |
download | samba-183e5d1e3dc306491c06f94c8c98e4882c64bc27.tar.gz |
HEIMDAL: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>
(cherry picked from heimdal commit a79b59ba27070a015479e8d981b7e685dbe34310)
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/heimdal')
-rw-r--r-- | source4/heimdal/kdc/pkinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/heimdal/kdc/pkinit.c b/source4/heimdal/kdc/pkinit.c index c874847cffd..ad7f3efc10a 100644 --- a/source4/heimdal/kdc/pkinit.c +++ b/source4/heimdal/kdc/pkinit.c @@ -384,7 +384,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; } |