mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Don't assert on short time strings, just ignore them.
This commit is contained in:
parent
d6a3dd512c
commit
ee01d03766
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue