diff options
author | Tom Yu <tlyu@mit.edu> | 1994-07-09 04:29:43 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 1994-07-09 04:29:43 +0000 |
commit | 089c68a109e63853a03a74a7199b074a09cb9463 (patch) | |
tree | 9ed6f85fc6fbb43a5e0a99d8139326edbb1f40e1 /src/lib/krb5 | |
parent | 219af439f0c3d45e920065f1a6094008266dcf4c (diff) | |
download | krb5-089c68a109e63853a03a74a7199b074a09cb9463.tar.gz krb5-089c68a109e63853a03a74a7199b074a09cb9463.tar.xz krb5-089c68a109e63853a03a74a7199b074a09cb9463.zip |
* asn1_encode_k.c (asn1_encode_pa_data): the contents field of a
krb5_pa_data structure can be NULL (e.g.
salt_type==KRB5_KDB_SALTTYPE_V4), and the encoder was treating
this as a missing required field
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3962 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5')
-rw-r--r-- | src/lib/krb5/asn.1/ChangeLog | 7 | ||||
-rw-r--r-- | src/lib/krb5/asn.1/asn1_encode_k.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index fd722eb150..c6d64bda3c 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,10 @@ +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 + krb5_pa_data structure can be NULL (e.g. + salt_type==KRB5_KDB_SALTTYPE_V4), and the encoder was treating + this as a missing required field + Fri Jul 8 17:32:29 1994 Tom Yu (tlyu at dragons-lair) * asn1_decode_k.c: yet another instance of the SunOS realloc bug diff --git a/src/lib/krb5/asn.1/asn1_encode_k.c b/src/lib/krb5/asn.1/asn1_encode_k.c index eab8a5fef4..60ea6d5d32 100644 --- a/src/lib/krb5/asn.1/asn1_encode_k.c +++ b/src/lib/krb5/asn.1/asn1_encode_k.c @@ -640,7 +640,7 @@ asn1_error_code asn1_encode_pa_data(DECLARG(asn1buf *, buf), { asn1_setup(); - if(val == NULL || val->contents == NULL) return ASN1_MISSING_FIELD; + if(val == NULL) return ASN1_MISSING_FIELD; asn1_addlenfield(val->length,val->contents,2,asn1_encode_octetstring); asn1_addfield(val->pa_type,1,asn1_encode_integer); |