heimdal: Fix: Too large time skew, client time 1970-01-01T01:00:00
Part ofed549cb0c5
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> Approved by: so Security: FreeBSD-EN-22:28.heimdal Fixes:ed549cb0c5
(cherry picked from commitf556a05c49
) (cherry picked from commitb23fe6bade
)
This commit is contained in:
parent
66c7b53d95
commit
10571c04c9
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user