amoralej / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 years ago
Clone

Blame SOURCES/0011-Bug-1347760-CVE-2016-4992-389-ds-base-Information-di.patch

7c7f29
From b6fd1033881ce21513ba95b533fd35942e5b66f1 Mon Sep 17 00:00:00 2001
7c7f29
From: Noriko Hosoi <nhosoi@redhat.com>
7c7f29
Date: Thu, 14 Jul 2016 10:33:15 -0700
7c7f29
Subject: [PATCH 11/15] Bug 1347760 - CVE-2016-4992 389-ds-base: Information
7c7f29
 disclosure via repeated use of LDAP ADD operation, etc.
7c7f29
7c7f29
Description: Fixing a compiler warning.
7c7f29
(cherry picked from commit 590e2fb86ee2e1d6f169169c83917d18872a95d0)
7c7f29
---
7c7f29
 ldap/servers/slapd/bind.c | 2 +-
7c7f29
 1 file changed, 1 insertion(+), 1 deletion(-)
7c7f29
7c7f29
diff --git a/ldap/servers/slapd/bind.c b/ldap/servers/slapd/bind.c
7c7f29
index b441615..702d4c2 100644
7c7f29
--- a/ldap/servers/slapd/bind.c
7c7f29
+++ b/ldap/servers/slapd/bind.c
7c7f29
@@ -697,7 +697,7 @@ do_bind( Slapi_PBlock *pb )
7c7f29
                 sdn = pb_sdn;
7c7f29
                 dn = slapi_sdn_get_dn(sdn);
7c7f29
                 if (!dn) {
7c7f29
-                    char *udn = slapi_sdn_get_udn(sdn);
7c7f29
+                    const char *udn = slapi_sdn_get_udn(sdn);
7c7f29
                     slapi_create_errormsg(errorbuf, sizeof(errorbuf), "Pre-bind plug-in set corrupted dn %s\n", udn?udn:"");
7c7f29
                     slapi_pblock_set(pb, SLAPI_PB_RESULT_TEXT, errorbuf);
7c7f29
                     send_ldap_result(pb, LDAP_OPERATIONS_ERROR, NULL, "", 0, NULL);
7c7f29
-- 
7c7f29
2.4.11
7c7f29