diff --git a/servers/slapd/overlays/sssvlv.c b/servers/slapd/overlays/sssvlv.c index 4bd3b01a20..49b4cf01b0 100644 --- a/servers/slapd/overlays/sssvlv.c +++ b/servers/slapd/overlays/sssvlv.c @@ -618,7 +618,8 @@ static void send_page( Operation *op, SlapReply *rs, sort_op *so ) /* Set the first entry to send for the next page */ so->so_tree = next_node; - next_node->avl_left = NULL; + if ( next_node ) + next_node->avl_left = NULL; op->o_bd = be; }