]> git.sur5r.net Git - openldap/commitdiff
so SIDs are hex
authorPierangelo Masarati <ando@openldap.org>
Mon, 27 Aug 2007 07:09:57 +0000 (07:09 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 27 Aug 2007 07:09:57 +0000 (07:09 +0000)
servers/slapd/schema_init.c

index 900f35a5d44d323cd574d92429c77789cc5e365e..4ae9e432513809c534eb0e54ad39fe4358e5dfdd 100644 (file)
@@ -3493,9 +3493,9 @@ SIDNormalize(
                return LDAP_INVALID_SYNTAX;
        }
 
-       if ( !ASCII_DIGIT( val->bv_val[ 0 ] ) || 
-               !ASCII_DIGIT( val->bv_val[ 1 ] ) ||
-               !ASCII_DIGIT( val->bv_val[ 2 ] ) )
+       if ( !ASCII_HEX( val->bv_val[ 0 ] ) || 
+               !ASCII_HEX( val->bv_val[ 1 ] ) ||
+               !ASCII_HEX( val->bv_val[ 2 ] ) )
        {
                return LDAP_INVALID_SYNTAX;
        }