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
openldap
OpenLDAP
Commits
ee01d037
Commit
ee01d037
authored
Dec 06, 2004
by
Howard Chu
Browse files
Don't assert on short time strings, just ignore them.
parent
d6a3dd51
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
ee01d037
...
...
@@ -2732,9 +2732,9 @@ int generalizedTimeFilter(
keys
=
slap_sl_malloc
(
sizeof
(
struct
berval
)
*
2
,
ctx
);
/* GeneralizedTime YYYYmmddHH[MM[SS]][(./,)d...](Z|(+/-)HH[MM]) */
assert
(
value
->
bv_val
!=
NULL
&&
value
->
bv_len
>=
10
);
/* Use 40 bits of time for key */
if
(
lutil_parsetime
(
value
->
bv_val
,
&
tm
)
==
0
)
{
if
(
value
->
bv_val
&&
value
->
bv_len
>=
10
&&
lutil_parsetime
(
value
->
bv_val
,
&
tm
)
==
0
)
{
lutil_tm2time
(
&
tm
,
&
tt
);
tmp
[
0
]
=
tt
.
tt_gsec
&
0xff
;
tmp
[
4
]
=
tt
.
tt_sec
&
0xff
;
...
...
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