[krb5-clients/1146] from <Wolfgang.Friebel@cern.ch>.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14734
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-08-16 Tom Yu <tlyu@mit.edu>
+
+ * string2key.c: Work around possible bug with AFS salts;
+ [krb5-clients/1146] from <Wolfgang.Friebel@cern.ch>.
+
2002-06-07 Miro Jurisic <meeroh@mit.edu>
* des_int.h: use "" includes for k5-int.h
if (salt) {
if (salt->length == SALT_TYPE_AFS_LENGTH || salt->length == (unsigned) -1) {
krb5_data salt2;
+ char *c;
+ c = strchr(salt->data, '@');
+ if (c != NULL) *c = '\0'; /* workaround from krb5-clients/1146 */
salt2.data = salt->data;
salt2.length = strlen (salt2.data);
/* cheat and do AFS string2key instead */