summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {