diff options
author | Sam Hartman <hartmans@mit.edu> | 2003-05-24 00:59:25 +0000 |
---|---|---|
committer | Sam Hartman <hartmans@mit.edu> | 2003-05-24 00:59:25 +0000 |
commit | fd14217c0335db3591078911d49d6e5094f2606e (patch) | |
tree | 5b27b4f289c1822828ce70e06ab6ba9387579c16 /src/lib/krb5/asn.1/asn1_k_decode.c | |
parent | 7d6d91b2aa8c712fbb6fe78fe8fed680bc0410ed (diff) | |
download | krb5-fd14217c0335db3591078911d49d6e5094f2606e.zip krb5-fd14217c0335db3591078911d49d6e5094f2606e.tar.gz krb5-fd14217c0335db3591078911d49d6e5094f2606e.tar.bz2 |
Populate etype_info_entry.s2kparams.data
The ASN.1 decoder for etype_info_entry accidentally throws away the
pointer to s2kparams data. Don't Correctly store the pointer.
Ticket: new
Target_Version: 1.3
Tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15488 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/asn.1/asn1_k_decode.c')
-rw-r--r-- | src/lib/krb5/asn.1/asn1_k_decode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index 28e3e98..6da26dd 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -819,9 +819,10 @@ asn1_error_code asn1_decode_etype_info_entry(asn1buf *buf, krb5_etype_info_entry val->salt = 0; } if ( tagnum ==2) { - krb5_octet *params = (krb5_octet *) val->s2kparams.data; + krb5_octet *params ; get_lenfield( val->s2kparams.length, params, 2, asn1_decode_octetstring); + val->s2kparams.data = ( char *) params; } else { val->s2kparams.data = NULL; val->s2kparams.length = 0; |