This is not strictly necessary as there's not anything to cleanup
in this case but it is more consistent with the code that follows.
struct berval **runasusers = NULL, **runasgroups = NULL;
struct berval **opts = NULL, **notbefore = NULL, **notafter = NULL;
struct privilege *priv = NULL;
- char *cn;
+ char *cn = NULL;
/* Ignore sudoRole without sudoCommand. */
cmnds = sudo_ldap_get_values_len(ld, entry, "sudoCommand", &rc);
if (cmnds == NULL) {
if (rc == LDAP_NO_MEMORY)
- goto oom;
+ goto cleanup;
continue;
}