diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index e01297b9bc..109426abb1 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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