]> git.sur5r.net Git - openldap/commitdiff
Warning cleanup: signed meets unsigned.
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 18 Oct 2008 07:21:27 +0000 (07:21 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 18 Oct 2008 07:21:27 +0000 (07:21 +0000)
servers/slapd/bconfig.c

index f50fb6d75a64cb75b8bc889fa66fbce01e6fadbc..47b4fe5c1ca14673b52856c4e1f2f460abfce364 100644 (file)
@@ -3948,10 +3948,10 @@ check_name_index( CfEntryInfo *parent, ConfigType ce_type, Entry *e,
                        isconfig = 1;
        }
        ptr1 = ber_bvchr( &e->e_name, '{' );
-       if ( ptr1 && ptr1 - e->e_name.bv_val < rdn.bv_len ) {
+       if ( ptr1 && ptr1 < &e->e_name.bv_val[ rdn.bv_len ] ) {
                char    *next;
                ptr2 = strchr( ptr1, '}' );
-               if (!ptr2 || ptr2 - e->e_name.bv_val > rdn.bv_len)
+               if ( !ptr2 || ptr2 > &e->e_name.bv_val[ rdn.bv_len ] )
                        return LDAP_NAMING_VIOLATION;
                if ( ptr2-ptr1 == 1)
                        return LDAP_NAMING_VIOLATION;