diff options
author | Ken Raeburn <raeburn@mit.edu> | 2007-05-10 04:24:38 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2007-05-10 04:24:38 +0000 |
commit | c3da88c50011473240e206b40c38bd90e42c7f73 (patch) | |
tree | 44e3f398fa99e95c0b01635fa59868ed8d8a4cd7 /src/lib/krb5/asn.1/asn1_k_decode.c | |
parent | 307b319c410581ad98a1d3d0034338240256fefa (diff) | |
download | krb5-c3da88c50011473240e206b40c38bd90e42c7f73.zip krb5-c3da88c50011473240e206b40c38bd90e42c7f73.tar.gz krb5-c3da88c50011473240e206b40c38bd90e42c7f73.tar.bz2 |
Fix various gcc warnings about pointer target signedness and qualifiers
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19548 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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index 3ffb701..6c20147 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -1,7 +1,7 @@ /* * src/lib/krb5/asn.1/asn1_k_decode.c * - * Copyright 1994 by the Massachusetts Institute of Technology. + * Copyright 1994, 2007 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -813,7 +813,9 @@ static asn1_error_code asn1_decode_etype_info2_entry(asn1buf *buf, krb5_etype_in { begin_structure(); get_field(val->etype,0,asn1_decode_enctype); if (tagnum == 1) { - get_lenfield(val->length,val->salt,1,asn1_decode_generalstring); + char *salt; + get_lenfield(val->length,salt,1,asn1_decode_generalstring); + val->salt = (krb5_octet *) salt; } else { val->length = KRB5_ETYPE_NO_SALT; val->salt = 0; |