Skip to content

Commit

Permalink
Corrected error in _parse_schema that determines syntax length
Browse files Browse the repository at this point in the history
if the length is specified.
  • Loading branch information
Clif Harden committed Jul 29, 2001
1 parent 2a7eaed commit 17b6880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Net/LDAP/Schema.pm
Expand Up @@ -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;
}

#
Expand Down

0 comments on commit 17b6880

Please sign in to comment.