]> git.sur5r.net Git - openldap/commitdiff
ITS#5503 integerFilter keys were not terminated
authorHoward Chu <hyc@openldap.org>
Sat, 10 May 2008 00:28:03 +0000 (00:28 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 10 May 2008 00:28:03 +0000 (00:28 +0000)
servers/slapd/schema_init.c

index ab82c9df50de435893ceac41ab2c94ca60ce015e..44175b750138088e3613fe94ae549d66bd33a347 100644 (file)
@@ -2273,6 +2273,8 @@ integerFilter(
 
        keys[0].bv_len = index_intlen;
        keys[0].bv_val = slap_sl_malloc( index_intlen, ctx );
+       keys[1].bv_len = 0;
+       keys[1].bv_val = NULL;
 
        iv.bv_len = value->bv_len < index_intlen_strlen + INDEX_INTLEN_CHOP-1
                ? value->bv_len : index_intlen_strlen + INDEX_INTLEN_CHOP-1;