summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2016-07-05 13:22:05 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-07-07 10:30:32 +0200
commitc88b63b2dd82f7111abc00d93fa8db2707487572 (patch)
tree8959d7fe4a87813d0792d422f32601b9ebc52322
parent573e86dc3156e481ce53d39ac901da2e99cfa0ca (diff)
downloadsssd-c88b63b2dd82f7111abc00d93fa8db2707487572.zip
sssd-c88b63b2dd82f7111abc00d93fa8db2707487572.tar.gz
sssd-c88b63b2dd82f7111abc00d93fa8db2707487572.tar.xz
fix some 'might be used uninitialized' warnings
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c5
-rw-r--r--src/responder/sudo/sudosrv_get_sudorules.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 39399fa..d14563c 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -2759,6 +2759,11 @@ struct tevent_req *sdap_get_initgr_send(TALLOC_CTX *memctx,
return NULL;
}
}
+ break;
+ default:
+ DEBUG(SSSDBG_CRIT_FAILURE, "Unsupported filter type [%d].\n",
+ filter_type);
+ return NULL;
}
state->user_base_filter =
diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c
index 0608888..92a09f2 100644
--- a/src/responder/sudo/sudosrv_get_sudorules.c
+++ b/src/responder/sudo/sudosrv_get_sudorules.c
@@ -440,6 +440,8 @@ static errno_t sudosrv_fetch_rules(TALLOC_CTX *mem_ctx,
ret = sudosrv_cached_defaults(mem_ctx, domain, &rules, &num_rules);
break;
+ default:
+ ret = EINVAL;
}
if (ret != EOK) {