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
1e68c2c5
Commit
1e68c2c5
authored
Apr 16, 2010
by
Quanah Gibson-Mount
Browse files
Silence warning (bv_len >= 0 is always true)
parent
1ebe532f
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/accesslog.c
View file @
1e68c2c5
...
...
@@ -1262,7 +1262,7 @@ static Entry *accesslog_entry( Operation *op, SlapReply *rs, int logop,
}
rdn
.
bv_len
=
snprintf
(
rdn
.
bv_val
,
sizeof
(
rdnbuf
),
"%lu"
,
op
->
o_connid
);
if
(
rdn
.
bv_len
>=
0
||
rdn
.
bv_len
<
sizeof
(
rdnbuf
)
)
{
if
(
rdn
.
bv_len
<
sizeof
(
rdnbuf
)
)
{
attr_merge_one
(
e
,
ad_reqSession
,
&
rdn
,
NULL
);
}
/* else? */
...
...
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