diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-07-09 20:45:37 -0500 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2010-08-20 11:52:17 -0700 |
commit | f877d18c61c367f6cb5745440d9493a572f8af18 (patch) | |
tree | 5d1f563ff9c31621ab607d81f226506ab238db82 /ldap/servers/slapd | |
parent | 5a6015b5540f61a8281c8d682b59ca5855a82315 (diff) | |
download | ds-f877d18c61c367f6cb5745440d9493a572f8af18.tar.gz ds-f877d18c61c367f6cb5745440d9493a572f8af18.tar.xz ds-f877d18c61c367f6cb5745440d9493a572f8af18.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 vlvSearch_removefromlist().
Diffstat (limited to 'ldap/servers/slapd')
-rw-r--r-- | ldap/servers/slapd/back-ldbm/vlv_srch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/back-ldbm/vlv_srch.c b/ldap/servers/slapd/back-ldbm/vlv_srch.c index da59ba3d..a9dada60 100644 --- a/ldap/servers/slapd/back-ldbm/vlv_srch.c +++ b/ldap/servers/slapd/back-ldbm/vlv_srch.c @@ -458,7 +458,7 @@ vlvSearch_removefromlist(struct vlvSearch** pplist, const Slapi_DN *dn) } else { - prev->vlv_next= curr->vlv_next; + if (prev) prev->vlv_next= curr->vlv_next; } done= 1; } |