]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10028 - crash with pwdMinDelay
authorHAMANO Tsukasa <code@cuspy.org>
Fri, 24 Mar 2023 02:24:15 +0000 (11:24 +0900)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 27 Apr 2023 15:12:11 +0000 (15:12 +0000)
servers/slapd/overlays/ppolicy.c

index cc4e60c5c679ce9efc712ba90a4e76a5f00a4652..48b9942d0f4691a41ca5443c942cd357d78544c8 100644 (file)
@@ -1617,7 +1617,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;