]> git.sur5r.net Git - openldap/commitdiff
ITS#8231 fix ITS#8042 regression
authorHoward Chu <hyc@openldap.org>
Sat, 29 Aug 2015 17:29:32 +0000 (18:29 +0100)
committerHoward Chu <hyc@openldap.org>
Sat, 29 Aug 2015 17:29:32 +0000 (18:29 +0100)
servers/slapd/syncrepl.c

index e01297b9bc8e8b219981f27f8e26e272aed91356..109426abb1d5816655ddc147b632d1860159ab09 100644 (file)
@@ -2769,6 +2769,9 @@ presentlist_find(
        Avlnode **a2 = (Avlnode **)av;
        unsigned short s;
 
+       if (!av)
+               return NULL;
+
        memcpy(&s, val->bv_val, 2);
        return avl_find( a2[s], val->bv_val+2, syncuuid_cmp );
 #else