瀏覽代碼

fix assertion failure introduced with fix for ticket 47667

Ludwig Krispenz 11 年之前
父節點
當前提交
f06f76e027
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      ldap/servers/plugins/replication/repl5_updatedn_list.c

+ 6 - 1
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: "