From: Howard Chu Date: Mon, 7 Aug 2006 22:40:51 +0000 (+0000) Subject: ITS#4634 always init pp->ad X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f75c6a43d76ea44a6c06596d57aecea1747159e;p=openldap ITS#4634 always init pp->ad --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 63f192dcc3..e0436eba53 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -416,6 +416,8 @@ ppolicy_get( Operation *op, Entry *e, PassPolicy *pp ) memset( pp, 0, sizeof(PassPolicy) ); + pp->ad = slap_schema.si_ad_userPassword; + /* Users can change their own password by default */ pp->pwdAllowUserChange = 1; @@ -444,8 +446,6 @@ ppolicy_get( Operation *op, Entry *e, PassPolicy *pp ) #if 0 /* Only worry about userPassword for now */ if ((a = attr_find( pe->e_attrs, ad_pwdAttribute ))) slap_bv2ad( &a->a_vals[0], &pp->ad, &text ); -#else - pp->ad = slap_schema.si_ad_userPassword; #endif if ( ( a = attr_find( pe->e_attrs, ad_pwdMinAge ) )