ldap/servers/slapd/fedse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 36f3f34d87957130fe81bd2b0dd1ed248e86f896
Author: Mark Reynolds <mreynolds(a)redhat.com>
Date: Wed Aug 14 16:56:36 2013 -0400
Ticket 47384 - Plugin path validation returntext not set correctly
Description: "returntext" was not being set correctly.
https://fedorahosted.org/389/ticket/47384
Reviewed by: nhosoi(Thanks!)
diff --git a/ldap/servers/slapd/fedse.c b/ldap/servers/slapd/fedse.c
index 6363a7a..cb6c2ed 100644
--- a/ldap/servers/slapd/fedse.c
+++ b/ldap/servers/slapd/fedse.c
@@ -1944,12 +1944,12 @@ check_plugin_path(Slapi_PBlock *pb,
if (res) {
if (strncmp(PLUGINDIR, resolved_path, plugindir_len) != 0) {
*returncode = LDAP_UNWILLING_TO_PERFORM;
- returntext = "Invalid plugin path";
+ PR_snprintf(returntext, SLAPI_DSE_RETURNTEXT_SIZE,"Invalid plugin
path");
rc = SLAPI_DSE_CALLBACK_ERROR;
}
} else {
*returncode = LDAP_UNWILLING_TO_PERFORM;
- returntext = "Invalid plugin path";
+ PR_snprintf(returntext, SLAPI_DSE_RETURNTEXT_SIZE,"Invalid plugin
path");
rc = SLAPI_DSE_CALLBACK_ERROR;
}
slapi_ch_free_string(&full_path);