From fd69bf5b6c8f12583489115ae1b06a3d0a2f56dd Mon Sep 17 00:00:00 2001 From: Howard Chu <hyc@openldap.org> 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 2a48325403..8323e130a6 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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 -- GitLab