Blame SOURCES/0061-Ticket-49541-Replica-ID-config-validation-fix.patch

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