diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-07-06 12:45:27 -0500 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2010-08-23 17:08:48 -0700 |
commit | 93d53d5e11c89fd745c267e27b04bb08497a057a (patch) | |
tree | 8d083de46fadcfadc3e62b3d5f389dc851f35c21 /lib | |
parent | 9dfdafc39269fd152247af574e436f024d22c7bf (diff) | |
download | ds-93d53d5e11c89fd745c267e27b04bb08497a057a.tar.gz ds-93d53d5e11c89fd745c267e27b04bb08497a057a.tar.xz ds-93d53d5e11c89fd745c267e27b04bb08497a057a.zip |
Bug 611790 - fix coverify Defect Type: Null pointer dereferences issues 11940 - 12166
https://bugzilla.redhat.com/show_bug.cgi?id=611790
Resolves: bug 611790
Bug description: Fix coverify Defect Type: Null pointer dereferences issues 11940 - 12166
Fix description: Catch possible NULL pointer in ldapu_cert_mapfn_default().
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldaputil/certmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ldaputil/certmap.c b/lib/ldaputil/certmap.c index 40c3f60e..a8cb6cb2 100644 --- a/lib/ldaputil/certmap.c +++ b/lib/ldaputil/certmap.c @@ -1221,6 +1221,7 @@ static int ldapu_cert_mapfn_default (void *cert_in, LDAP *ld, if (rdns == NULL) { /* error */ + return LDAPU_ERR_INTERNAL; } /* find last RDN */ |