Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
2c1c2006
Commit
2c1c2006
authored
Dec 08, 2009
by
Pierangelo Masarati
Browse files
log about invalid URI (more about ITS#6421)
parent
db852e43
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/dynlist.c
View file @
2c1c2006
...
...
@@ -170,7 +170,7 @@ dynlist_is_dynlist_next( Operation *op, SlapReply *rs, dynlist_info_t *old_dli )
}
static
int
dynlist_make_filter
(
Operation
*
op
,
struct
berval
*
oldf
,
struct
berval
*
newf
)
dynlist_make_filter
(
Operation
*
op
,
Entry
*
e
,
const
char
*
url
,
struct
berval
*
oldf
,
struct
berval
*
newf
)
{
slap_overinst
*
on
=
(
slap_overinst
*
)
op
->
o_bd
->
bd_info
;
dynlist_info_t
*
dli
=
(
dynlist_info_t
*
)
on
->
on_bi
.
bi_private
;
...
...
@@ -184,6 +184,8 @@ dynlist_make_filter( Operation *op, struct berval *oldf, struct berval *newf )
assert
(
!
BER_BVISEMPTY
(
oldf
)
);
if
(
oldf
->
bv_val
[
0
]
!=
'('
)
{
Debug
(
LDAP_DEBUG_ANY
,
"%s: dynlist, DN=
\"
%s
\"
: missing brackets in URI=
\"
%s
\"
filter
\n
"
,
op
->
o_log_prefix
,
e
->
e_name
.
bv_val
,
url
);
needBrackets
=
2
;
}
...
...
@@ -618,7 +620,7 @@ dynlist_prepare_entry( Operation *op, SlapReply *rs, dynlist_info_t *dli )
}
else
{
struct
berval
flt
;
ber_str2bv
(
lud
->
lud_filter
,
0
,
0
,
&
flt
);
if
(
dynlist_make_filter
(
op
,
&
flt
,
&
o
.
ors_filterstr
)
)
{
if
(
dynlist_make_filter
(
op
,
rs
->
sr_entry
,
url
->
bv_val
,
&
flt
,
&
o
.
ors_filterstr
)
)
{
/* error */
goto
cleanup
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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