ITS#10028 - crash with pwdMinDelay

This commit is contained in:
HAMANO Tsukasa 2023-03-24 11:24:15 +09:00 committed by Quanah Gibson-Mount
parent 5d33a984ee
commit f12d6c047c

View file

@ -1687,7 +1687,8 @@ ppolicy_bind_response( Operation *op, SlapReply *rs )
} else if ( ppb->pp.pwdMinDelay ) {
int waittime = ppb->pp.pwdMinDelay << fc;
time_t wait_end;
struct berval lockout_stamp;
char lockout_stamp_buf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
struct berval lockout_stamp = BER_BVC(lockout_stamp_buf);
if ( waittime > ppb->pp.pwdMaxDelay ) {
waittime = ppb->pp.pwdMaxDelay;