X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fppolicy.c;h=0092cd8fcf8d7106be9045b7f12d83a680f484e9;hb=2dfd312fa12a765a5ad311f6c9bf8dce76a63155;hp=d730f93cdf9352cdd2761b69a9a9d0f24ed0819c;hpb=bdbda6a23177dab6451d67cb0dfdd9ad851b16ec;p=openldap diff --git a/libraries/libldap/ppolicy.c b/libraries/libldap/ppolicy.c index d730f93cdf..0092cd8fcf 100644 --- a/libraries/libldap/ppolicy.c +++ b/libraries/libldap/ppolicy.c @@ -130,7 +130,7 @@ ldap_parse_passwordpolicy_control( LDAPPasswordPolicyError *errorp ) { BerElement *ber; - int i, exp = -1, grace = -1; + int exp = -1, grace = -1; ber_tag_t tag; ber_len_t berLen; char *last; @@ -138,7 +138,7 @@ ldap_parse_passwordpolicy_control( assert( ld != NULL ); assert( LDAP_VALID( ld ) ); - assert( ctrl ); + assert( ctrl != NULL ); /* Create a BerElement from the berval returned in the control. */ ber = ber_init(&ctrl->ldctl_value);