summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sss_client/sudo/sss_sudo.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/sss_client/sudo/sss_sudo.c b/src/sss_client/sudo/sss_sudo.c
index ec506429..20202993 100644
--- a/src/sss_client/sudo/sss_sudo.c
+++ b/src/sss_client/sudo/sss_sudo.c
@@ -217,10 +217,6 @@ void sss_sudo_free_rules(unsigned int num_rules, struct sss_sudo_rule *rules)
for (i = 0; i < num_rules; i++) {
rule = rules + i;
- if (rule == NULL) {
- continue;
- }
-
sss_sudo_free_attrs(rule->num_attrs, rule->attrs);
rule->attrs = NULL;
}
@@ -240,10 +236,6 @@ void sss_sudo_free_attrs(unsigned int num_attrs, struct sss_sudo_attr *attrs)
for (i = 0; i < num_attrs; i++) {
attr = attrs + i;
- if (attr == NULL) {
- continue;
- }
-
free(attr->name);
attr->name = NULL;