Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
6a35d8a0
Commit
6a35d8a0
authored
Oct 10, 2002
by
Kurt Zeilenga
Browse files
Don't elcipse textbuf
parent
cfea24fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/mods.c
View file @
6a35d8a0
...
...
@@ -281,7 +281,6 @@ modify_add_values(
}
}
else
{
/*
* The original code performs ( n ) normalizations
* and ( n * ( n - 1 ) / 2 ) matches, which hide
...
...
@@ -310,8 +309,6 @@ modify_add_values(
*/
int
rc
;
const
char
*
text
=
NULL
;
char
textbuf
[
SLAP_TEXT_BUFLEN
]
=
{
'\0'
};
if
(
mod
->
sm_bvalues
[
1
].
bv_val
==
0
)
{
if
(
a
!=
NULL
)
{
...
...
@@ -319,7 +316,7 @@ modify_add_values(
int
i
;
rc
=
value_normalize
(
mod
->
sm_desc
,
SLAP_MR_EQUALITY
,
&
mod
->
sm_bvalues
[
0
],
&
asserted
,
&
text
);
&
mod
->
sm_bvalues
[
0
],
&
asserted
,
text
);
if
(
rc
!=
LDAP_SUCCESS
)
{
return
rc
;
...
...
@@ -330,7 +327,7 @@ modify_add_values(
rc
=
value_match
(
&
match
,
mod
->
sm_desc
,
mr
,
SLAP_MR_VALUE_SYNTAX_MATCH
,
&
a
->
a_vals
[
i
],
&
asserted
,
&
text
);
&
a
->
a_vals
[
i
],
&
asserted
,
text
);
if
(
rc
==
LDAP_SUCCESS
&&
match
==
0
)
{
free
(
asserted
.
bv_val
);
...
...
@@ -342,7 +339,7 @@ modify_add_values(
}
else
{
rc
=
modify_check_duplicates
(
mod
->
sm_desc
,
mr
,
a
?
a
->
a_vals
:
NULL
,
mod
->
sm_bvalues
,
&
text
,
textbuf
,
sizeof
(
textbuf
)
);
text
,
textbuf
,
textlen
);
if
(
rc
!=
LDAP_SUCCESS
)
{
return
rc
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment