From: Howard Chu Date: Fri, 24 May 2013 15:23:44 +0000 (-0700) Subject: ITS#7588 fix possible NULL-deref in prev commit X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1748f0304103d964d5e3cbd24735a42aad2083dc;p=openldap ITS#7588 fix possible NULL-deref in prev commit --- 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; }