]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/attr.c
Add missing semicolon.
[openldap] / servers / slapd / attr.c
index 459ce3cccc6ecefa9b3869086819ea288a8826f5..8e3112200bf99c96797bc4776f39c2869615172d 100644 (file)
@@ -40,15 +40,9 @@ attr_free( Attribute *a )
 char *
 attr_normalize( char *s )
 {
-       char    *save;
-
        assert( s != NULL );
 
-       for ( save = s; *s; s++ ) {
-               *s = TOLOWER( (unsigned char) *s );
-       }
-
-       return( save );
+       return( str2lower( s ) );
 }
 
 /*
@@ -571,6 +565,7 @@ at_add(
        if ( sat->sat_sup ) {
                if ( !sat->sat_syntax ) {
                        sat->sat_syntax = sat->sat_sup->sat_syntax;
+                       sat->sat_syntax_len = sat->sat_sup->sat_syntax_len;
                }
                if ( !sat->sat_equality ) {
                        sat->sat_equality = sat->sat_sup->sat_equality;