andykimpe / rpms / 389-ds-base

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