projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc4e82e
)
If no salt is included with the key data, set the salt length field to 0.
author
Ken Raeburn
<raeburn@mit.edu>
Fri, 27 Jul 2007 04:37:50 +0000
(
04:37
+0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Fri, 27 Jul 2007 04:37:50 +0000
(
04:37
+0000)
Bug report and patch from Nalin Dahyabhai.
ticket: 5545
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19733
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/asn.1/ldap_key_seq.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/asn.1/ldap_key_seq.c
b/src/lib/krb5/asn.1/ldap_key_seq.c
index 1fe9a548fed9ef83cd028b1e341390976b63b22a..b910e721d85079fd9ef86c66eb6fd780439d3bb9 100644
(file)
--- a/
src/lib/krb5/asn.1/ldap_key_seq.c
+++ b/
src/lib/krb5/asn.1/ldap_key_seq.c
@@
-341,7
+341,8
@@
static asn1_error_code asn1_decode_key(asn1buf *buf, krb5_key_data *key)
if (asn1buf_remains(&slt, 0) != 0) { /* Salt value is optional */
ret = decode_tagged_octetstring (&slt, 1, &keylen,
&key->key_data_contents[1]); checkerr;
- }
+ } else
+ keylen = 0;
safe_syncbuf (&subbuf, &slt);
key->key_data_length[1] = keylen; /* XXX range check?? */