diff --git a/lib/Net/LDAP/Schema.pm b/lib/Net/LDAP/Schema.pm index 0ce5d74..1ea9f13 100644 --- a/lib/Net/LDAP/Schema.pm +++ b/lib/Net/LDAP/Schema.pm @@ -536,8 +536,8 @@ sub _parse_schema { # Extract the maximum length of a syntax # if ( exists $schema_entry{syntax}) { - $schema_entry{syntax} =~ s/{(\d+)}//; - $schema_entry{max_length} = $1 || 0; + $schema_entry{syntax} =~ s/{(\d+)}// + and $schema_entry{max_length} = $1; } #