From 2eaf8eb213499a00fea2e9f449fad5d7a4493728 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 29 Aug 2015 18:29:32 +0100 Subject: [PATCH] ITS#8231 fix ITS#8042 regression --- servers/slapd/syncrepl.c | 3 +++ 1 file changed, 3 insertions(+) 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