]> git.sur5r.net Git - openldap/commitdiff
fix outdated comments
authorPierangelo Masarati <ando@openldap.org>
Wed, 6 Sep 2006 12:04:52 +0000 (12:04 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 6 Sep 2006 12:04:52 +0000 (12:04 +0000)
libraries/libldap/search.c

index 26c3be90b596d6b9f3dc2c82652afcf7dab2f187..762bfd2fe7abd4999fd9365d75f72dcea8d9c7a2 100644 (file)
@@ -415,8 +415,7 @@ static char escape[128] = {
 #define        NEEDFLTESCAPE(c)        ((c) & 0x80 || escape[ (unsigned)(c) ])
 
 /*
- * compute the length of the escaped value;
- * returns ((ber_len_t)(-1)) if no escaping is required.
+ * compute the length of the escaped value
  */
 ber_len_t
 ldap_bv2escaped_filter_value_len( struct berval *in )
@@ -429,7 +428,6 @@ ldap_bv2escaped_filter_value_len( struct berval *in )
                return 0;
        }
 
-       /* assume we'll escape everything */
        for( l = 0, i = 0; i < in->bv_len; l++, i++ ) {
                char c = in->bv_val[ i ];
                if ( NEEDFLTESCAPE( c ) ) {