From 90e031b5937eacf76485befb67f9c4e35c8c1413 Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Tue, 9 Apr 2013 16:48:54 -0700 Subject: [PATCH 44/47] Coverity fix 13139 - Dereference after NULL check in slapi_attr_value_normalize_ext() --- ldap/servers/slapd/plugin_syntax.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ldap/servers/slapd/plugin_syntax.c b/ldap/servers/slapd/plugin_syntax.c index 840fa7a..1635e53 100644 --- a/ldap/servers/slapd/plugin_syntax.c +++ b/ldap/servers/slapd/plugin_syntax.c @@ -968,8 +968,7 @@ slapi_attr_value_normalize_ext( break; } - if (!norm_fn) { - /* no matching rule specific normalizer specified - use syntax default */ + if (!norm_fn && sattr->a_plugin) { norm_fn = sattr->a_plugin->plg_syntax_normalize; } if (norm_fn) { -- 1.8.1.4