]> git.sur5r.net Git - openldap/commitdiff
ITS#7588 fix possible NULL-deref in prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 24 May 2013 15:23:44 +0000 (08:23 -0700)
committerHoward Chu <hyc@openldap.org>
Fri, 24 May 2013 15:23:44 +0000 (08:23 -0700)
servers/slapd/overlays/sssvlv.c

index 4bd3b01a20965c09f36b5bd4e8d8d11faea4e8af..49b4cf01b066072ff3dd7aab5ed7d754220a5e12 100644 (file)
@@ -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;
 }