summaryrefslogtreecommitdiffstats
path: root/ldap/servers
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-07-09 20:43:24 -0500
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-20 11:51:15 -0700
commit64640f85fdbeca693d4e95dedeab6b5b762f42a2 (patch)
tree0a5d0970dac0d231f0e9335e04c237366af572ad /ldap/servers
parentcc5f43f62095657678be3aff390a11a1025a8c98 (diff)
downloadds-64640f85fdbeca693d4e95dedeab6b5b762f42a2.tar.gz
ds-64640f85fdbeca693d4e95dedeab6b5b762f42a2.tar.xz
ds-64640f85fdbeca693d4e95dedeab6b5b762f42a2.zip
Bug 613056 - fix coverify Defect Type: Null pointer dereferences issues 11892 - 11939
https://bugzilla.redhat.com/show_bug.cgi?id=613056 Resolves: bug 613056 Bug description: Fix coverify Defect Type: Null pointer dereferences issues 11892 - 11939 description: Catch possible NULL pointer in ldbm_config_get().
Diffstat (limited to 'ldap/servers')
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_config.c b/ldap/servers/slapd/back-ldbm/ldbm_config.c
index ecef74bc..9550258c 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_config.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_config.c
@@ -1479,6 +1479,7 @@ void ldbm_config_get(void *arg, config_info *config, char *buf)
if (config == NULL) {
buf[0] = '\0';
+ return;
}
switch(config->config_type) {