From: Todd C. Miller Date: Thu, 19 Apr 2018 15:23:45 +0000 (-0600) Subject: Fix the -b option when converting from LDIF. X-Git-Tag: SUDO_1_8_23^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1392cd28ac87f6e8b780d8d528d45060e434246;p=sudo Fix the -b option when converting from LDIF. --- 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++;