]> git.sur5r.net Git - openldap/commitdiff
Fix seg fault (test003).
authorMark Valence <mrv@openldap.org>
Sun, 2 Jul 2000 07:18:55 +0000 (07:18 +0000)
committerMark Valence <mrv@openldap.org>
Sun, 2 Jul 2000 07:18:55 +0000 (07:18 +0000)
servers/slapd/filter.c

index 3363f75ca65007dc9c003f0af73e901da82f4894..902b94c7f367d44000b63891dd40a664dd248427 100644 (file)
@@ -696,7 +696,7 @@ int escape_value(
        assert( in );
        assert( out );
 
-       out->bv_val = (char *) ch_malloc( in->bv_len * 3 ) + 1;
+       out->bv_val = (char *) ch_malloc( ( in->bv_len * 3 ) + 1 );
        out->bv_len = 0;
 
 #undef NIBBLE