]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 31 Aug 2015 15:33:52 +0000 (10:33 -0500)
servers/slapd/syncrepl.c

index 2a483254037e25ba7a2ab741c8aa57778dfae646..8323e130a67a8f9ce7d1dff956d875f1b5a63658 100644 (file)
@@ -2750,6 +2750,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