]> granicus.if.org Git - sudo/commitdiff
Fix pasto when converting sudoNotAfter; from Miguel Sanders
authorTodd C. Miller <Todd.Miller@sudo.ws>
Mon, 20 Aug 2018 11:48:14 +0000 (05:48 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Mon, 20 Aug 2018 11:48:14 +0000 (05:48 -0600)
Bug #845

plugins/sudoers/ldap_util.c

index 1e411f694dbc7a26897765e8539ab2f9e6d567a0..d9be95a6127dd7600be966bd0ab88005131d70e8 100644 (file)
@@ -386,7 +386,7 @@ sudo_ldap_role_to_priv(const char *cn, void *hosts, void *runasusers,
            if (notbefore != NULL)
                cmndspec->notbefore = parse_gentime(notbefore);
            if (notafter != NULL)
-               cmndspec->notbefore = parse_gentime(notafter);
+               cmndspec->notafter = parse_gentime(notafter);
 
            /* Parse sudoOptions. */
            if (opts != NULL) {