From e1392cd28ac87f6e8b780d8d528d45060e434246 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 19 Apr 2018 09:23:45 -0600 Subject: [PATCH] Fix the -b option when converting from LDIF. --- plugins/sudoers/cvtsudoers_ldif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/sudoers/cvtsudoers_ldif.c b/plugins/sudoers/cvtsudoers_ldif.c index 341c674ae..de26e0a52 100644 --- a/plugins/sudoers/cvtsudoers_ldif.c +++ b/plugins/sudoers/cvtsudoers_ldif.c @@ -1090,8 +1090,7 @@ parse_ldif(const char *input_file, struct cvtsudoers_config *conf) cp++; /* Skip over cn if present. */ if (strncasecmp(cp, "cn=", 3) == 0) { - cp += 3; - while (*cp != '\0') { + for (cp += 3; *cp != '\0'; cp++) { /* Handle escaped ',' chars. */ if (*cp == '\\') cp++; -- 2.40.0