+Thu Jul 14 01:26:22 1994 Tom Yu (tlyu at dragons-lair)
+
+ * asn1_encode_k.c (asn1_encode_pa_data): oops still check NULL if
+ length != 0
+
Sat Jul 9 00:26:48 1994 Tom Yu (tlyu at dragons-lair)
* asn1_encode_k.c (asn1_encode_pa_data): the contents field of a
{
asn1_setup();
- if(val == NULL) return ASN1_MISSING_FIELD;
+ if(val == NULL || (val->length != 0 && val->contents == NULL))
+ return ASN1_MISSING_FIELD;
asn1_addlenfield(val->length,val->contents,2,asn1_encode_octetstring);
asn1_addfield(val->pa_type,1,asn1_encode_integer);