summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-02-13 08:47:44 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-02-13 11:54:57 -0500
commit43290d8a1d714ea4fd9eaf6ee39cb2f856f76990 (patch)
tree03d9b1ab5c68bf6b0b9f932a90a3c8fc5fecebee /src
parentb861f94b6c6ae517fbe4724d5d4132c18ce4a935 (diff)
downloadsssd-43290d8a1d714ea4fd9eaf6ee39cb2f856f76990.tar.gz
sssd-43290d8a1d714ea4fd9eaf6ee39cb2f856f76990.tar.xz
sssd-43290d8a1d714ea4fd9eaf6ee39cb2f856f76990.zip
Add missing breaks to switch statements
Coverity #12525 and #12524
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/ldap_common.c1
-rw-r--r--src/providers/ldap/sdap.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
index c92eb282a..4f78313bc 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -742,6 +742,7 @@ errno_t sdap_parse_search_base(TALLOC_CTX *mem_ctx,
break;
case SDAP_SERVICE_SEARCH_BASE:
class_name = "SERVICE";
+ break;
case SDAP_AUTOFS_SEARCH_BASE:
class_name = "AUTOFS";
break;
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
index 3ac19498a..9e052eef5 100644
--- a/src/providers/ldap/sdap.c
+++ b/src/providers/ldap/sdap.c
@@ -733,6 +733,7 @@ static errno_t sdap_set_search_base(struct sdap_options *opts,
break;
case SDAP_SERVICE_SEARCH_BASE:
bases = &opts->service_search_bases;
+ break;
case SDAP_AUTOFS_SEARCH_BASE:
bases = &opts->autofs_search_bases;
break;