aboutsummaryrefslogtreecommitdiff
path: root/src/lib/kadm5/str_conv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/kadm5/str_conv.c')
-rw-r--r--src/lib/kadm5/str_conv.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib/kadm5/str_conv.c b/src/lib/kadm5/str_conv.c
index 16ad534..f4f572a 100644
--- a/src/lib/kadm5/str_conv.c
+++ b/src/lib/kadm5/str_conv.c
@@ -361,7 +361,22 @@ krb5_string_to_keysalts(string, tupleseps, ksaltseps, dups, ksaltp, nksaltp)
if (ep)
ep[-1] = trailchar;
kp = ep;
- }
+
+ /* Skip over extra separators - like spaces */
+ if (kp && *tseplist) {
+ septmp = tseplist;
+ while(*septmp && *kp) {
+ if(*septmp == *kp) {
+ /* Increment string - reset separator list */
+ kp++;
+ septmp = tseplist;
+ } else {
+ septmp++;
+ }
+ }
+ if (!*kp) kp = NULL;
+ }
+ } /* while kp */
return(kret);
}