bomb if val->tr_contents.dlength == 0
* asn1_decode_k.c (asn1_decode_encrypted_data): oops looks like
Harry made a brain fart here.... default value for kvno was 5, not
0.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3995
dc483132-0cff-0310-8789-
dd5450dbe970
+Sat Jul 16 00:19:18 1994 Tom Yu (tlyu at dragons-lair)
+
+ * asn1_encode_k.c (asn1_encode_transited_encoding): whoops don't
+ bomb if val->tr_contents.dlength == 0
+
+ * asn1_decode_k.c (asn1_decode_encrypted_data): oops looks like
+ Harry made a brain fart here.... default value for kvno was 5, not
+ 0.
+
Thu Jul 14 11:37:59 1994 Theodore Y. Ts'o (tytso at tsx-11)
* asn1_*.[ch]:
setup();
{ begin_structure();
get_field(val->etype,0,asn1_decode_enctype);
- opt_field(val->kvno,1,asn1_decode_kvno,5);
+ opt_field(val->kvno,1,asn1_decode_kvno,0);
get_lenfield(val->ciphertext.length,val->ciphertext.data,2,asn1_decode_charstring);
end_structure();
}
{
asn1_setup();
- if(val == NULL || val->tr_contents.data == NULL) return ASN1_MISSING_FIELD;
+ if(val == NULL ||
+ (val->tr_contents.length != 0 && val->tr_contents.data == NULL))
+ return ASN1_MISSING_FIELD;
asn1_addlenfield(val->tr_contents.length,val->tr_contents.data,
1,asn1_encode_charstring);