From 18c2ad9971f9d51d4f3b7c4c2ead6f20915da171 Mon Sep 17 00:00:00 2001 From: Ludwig Krispenz Date: Wed, 16 Apr 2014 08:41:19 +0200 Subject: [PATCH] fix assertion failure introduced with fix for ticket 47667 --- ldap/servers/plugins/replication/repl5_updatedn_list.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ldap/servers/plugins/replication/repl5_updatedn_list.c b/ldap/servers/plugins/replication/repl5_updatedn_list.c index 969505e..abf9a92 100644 --- a/ldap/servers/plugins/replication/repl5_updatedn_list.c +++ b/ldap/servers/plugins/replication/repl5_updatedn_list.c @@ -116,8 +116,13 @@ replica_updatedn_group_new(const Slapi_Entry *entry) ReplicaUpdateDNList replica_groupdn_list_new(const Slapi_ValueSet *vs) { + PLHashTable *hash; + + if (vs == NULL) { + return NULL; + } /* allocate table */ - PLHashTable *hash = PL_NewHashTable(4, PL_HashString, PL_CompareStrings, + hash = PL_NewHashTable(4, PL_HashString, PL_CompareStrings, updatedn_compare_dns, NULL, NULL); if (hash == NULL) { slapi_log_error(SLAPI_LOG_FATAL, repl_plugin_name, "replica_new_updatedn_list: " -- 1.7.11.7