- fix an unitialized length count which caused the plugin to attempt to
read from an uninitialized pointer when reading back salted key which didn't include a non-default salt
This commit is contained in:
parent
833ef8ff9f
commit
446760b8bf
14
krb5-1.6-ldap-init.patch
Normal file
14
krb5-1.6-ldap-init.patch
Normal file
@ -0,0 +1,14 @@
|
||||
Index: src/lib/krb5/asn.1/ldap_key_seq.c
|
||||
===================================================================
|
||||
--- src/lib/krb5/asn.1/ldap_key_seq.c (revision 19509)
|
||||
+++ src/lib/krb5/asn.1/ldap_key_seq.c (working copy)
|
||||
@@ -341,7 +341,8 @@
|
||||
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?? */
|
||||
|
Loading…
Reference in New Issue
Block a user