When decoding a kerberos time, if the asn1 time is 19700101000000Z (i.e. time_t
of 0) - 15 bytes of memory are lost.
* asn1_decode.c (asn1_decode_generaltime): Fix memory leak when
time sent is "19700101000000Z".
ticket: new
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16983
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-12-28 Ezra Peisach <epeisach@mit.edu>
+
+ * asn1_decode.c (asn1_decode_generaltime): Fix memory leak when
+ time sent is "19700101000000Z".
+
2004-08-31 Tom Yu <tlyu@mit.edu>
* asn1buf.c: Fix denial-of-service bug.
}
if(s[0] == '1' && !memcmp("19700101000000Z", s, 15)) {
t = 0;
+ free(s);
goto done;
}
#define c2i(c) ((c)-'0')