From 5c113e59ecacb0b21f224a20e3ffb2891e550816 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 20 May 2018 07:36:46 -0600 Subject: [PATCH] Add missing variable declaration for SELinux and Solaris. --- plugins/sudoers/cvtsudoers_ldif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sudoers/cvtsudoers_ldif.c b/plugins/sudoers/cvtsudoers_ldif.c index 24c3b7c0f..fee0a4572 100644 --- a/plugins/sudoers/cvtsudoers_ldif.c +++ b/plugins/sudoers/cvtsudoers_ldif.c @@ -371,6 +371,7 @@ print_cmndspec_ldif(FILE *fp, struct cmndspec *cs, struct cmndspec **nextp, stru /* Print SELinux role/type */ if (cs->role != NULL && cs->type != NULL) { char *attr_val; + int len; len = asprintf(&attr_val, "role=%s", cs->role); if (len == -1) { @@ -394,6 +395,7 @@ print_cmndspec_ldif(FILE *fp, struct cmndspec *cs, struct cmndspec **nextp, stru /* Print Solaris privs/limitprivs */ if (cs->privs != NULL || cs->limitprivs != NULL) { char *attr_val; + int len; if (cs->privs != NULL) { len = asprintf(&attr_val, "privs=%s", cs->privs); -- 2.40.0