]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/ppolicy.c
improve LDAP_OTHER description
[openldap] / libraries / libldap / ppolicy.c
index d730f93cdf9352cdd2761b69a9a9d0f24ed0819c..0092cd8fcf8d7106be9045b7f12d83a680f484e9 100644 (file)
@@ -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);