diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-04-22 11:04:39 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-24 22:26:54 +0200 |
commit | 9602c7f43cae0b06c584fe64ced474ee76623d97 (patch) | |
tree | 96e61e66584a39cc5706881b843bbcb5e588cf0f /src/sss_client/sudo | |
parent | 325dace7e2a0ae1f4d477416e9e8f05f7c843fdf (diff) | |
download | sssd-9602c7f43cae0b06c584fe64ced474ee76623d97.tar.gz sssd-9602c7f43cae0b06c584fe64ced474ee76623d97.tar.bz2 sssd-9602c7f43cae0b06c584fe64ced474ee76623d97.zip |
sudo client: remove dead code
https://fedorahosted.org/sssd/ticket/1889
Fixes two minor coverity issues.
Diffstat (limited to 'src/sss_client/sudo')
-rw-r--r-- | src/sss_client/sudo/sss_sudo.c | 8 |
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; |