aboutsummaryrefslogtreecommitdiff
path: root/crypto/heimdal
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-11-17 15:43:29 +0000
committerCy Schubert <cy@FreeBSD.org>2022-11-17 17:29:17 +0000
commitf556a05c49261af3d373c599d05fa250f3563b59 (patch)
treee9bd7deb2bd3c5cea4a2a0fdfeb9e974012c8ec2 /crypto/heimdal
parentc15085278cb55bd3c1ea252adf5635bb6800b431 (diff)
downloadsrc-f556a05c49261af3d373c599d05fa250f3563b59.tar.gz
src-f556a05c49261af3d373c599d05fa250f3563b59.zip
heimdal: Fix: Too large time skew, client time 1970-01-01T01:00:00
Part of ed549cb0c53f zeroed out a data structure in the resulting code-file when a TUTCTime type was freed. This part of the patch applies to Heimdal 7.1+ and not our Heimdal 1.5.2. PR: 267827 Reported by: Peter Much <pmc@citylink.dinoex.sub.org> Tested by: Peter Much <pmc@citylink.dinoex.sub.org> Fixes: ed549cb0c53f MFC after: TBD with philip@
Diffstat (limited to 'crypto/heimdal')
-rw-r--r--crypto/heimdal/lib/asn1/gen_free.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/crypto/heimdal/lib/asn1/gen_free.c b/crypto/heimdal/lib/asn1/gen_free.c
index 74449fe6ca82..b9cae7533b17 100644
--- a/crypto/heimdal/lib/asn1/gen_free.c
+++ b/crypto/heimdal/lib/asn1/gen_free.c
@@ -61,13 +61,6 @@ free_type (const char *name, const Type *t, int preserve)
case TNull:
case TGeneralizedTime:
case TUTCTime:
- /*
- * This doesn't do much, but it leaves zeros where garbage might
- * otherwise have been found. Gets us closer to having the equivalent
- * of a memset()-to-zero data structure after calling the free
- * functions.
- */
- fprintf(codefile, "*%s = 0;\n", name);
break;
case TBitString:
if (ASN1_TAILQ_EMPTY(t->members))