|
|
058656 |
From d39be97021f273548957a9f26ca35d5faab20318 Mon Sep 17 00:00:00 2001
|
|
|
058656 |
From: Mark Reynolds <mreynolds@redhat.com>
|
|
|
058656 |
Date: Mon, 29 Jan 2018 21:13:16 -0500
|
|
|
058656 |
Subject: [PATCH] Ticket 49541 - Replica ID config validation fix
|
|
|
058656 |
|
|
|
058656 |
Description: Is is possible to set the replica ID to 65535 with a modify
|
|
|
058656 |
operation, which is reserved for hubs/consumers.
|
|
|
058656 |
|
|
|
058656 |
https://pagure.io/389-ds-base/issue/49541
|
|
|
058656 |
|
|
|
058656 |
Reviewed by: mreynolds (one line commit rule)
|
|
|
058656 |
---
|
|
|
058656 |
ldap/servers/plugins/replication/repl5_replica_config.c | 2 +-
|
|
|
058656 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
058656 |
|
|
|
058656 |
diff --git a/ldap/servers/plugins/replication/repl5_replica_config.c b/ldap/servers/plugins/replication/repl5_replica_config.c
|
|
|
058656 |
index bda333362..ea430d9a4 100644
|
|
|
058656 |
--- a/ldap/servers/plugins/replication/repl5_replica_config.c
|
|
|
058656 |
+++ b/ldap/servers/plugins/replication/repl5_replica_config.c
|
|
|
058656 |
@@ -421,7 +421,7 @@ replica_config_modify(Slapi_PBlock *pb,
|
|
|
058656 |
}
|
|
|
058656 |
} else if (strcasecmp(config_attr, attr_replicaId) == 0) {
|
|
|
058656 |
int64_t rid = 0;
|
|
|
058656 |
- if (repl_config_valid_num(config_attr, config_attr_value, 1, 65535, returncode, errortext, &rid) == 0) {
|
|
|
058656 |
+ if (repl_config_valid_num(config_attr, config_attr_value, 1, 65534, returncode, errortext, &rid) == 0) {
|
|
|
058656 |
slapi_ch_free_string(&new_repl_id);
|
|
|
058656 |
new_repl_id = slapi_ch_strdup(config_attr_value);
|
|
|
058656 |
} else {
|
|
|
058656 |
--
|
|
|
058656 |
2.13.6
|
|
|
058656 |
|