]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/operational.c
ITS#4310 seems to affect also back-ldbm
[openldap] / servers / slapd / back-ldbm / operational.c
index b62c84bada086be09eabcd098c62493f1e59aa76..384437cbf836a1dfd3871095d06b6de964727e7e 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -55,7 +55,7 @@ ldbm_back_operational(
 {
        Attribute       **ap;
 
-       assert( rs->sr_entry );
+       assert( rs->sr_entry != NULL );
 
        for ( ap = &rs->sr_operational_attrs; *ap; ap = &(*ap)->a_next )
                /* just count */ ;
@@ -67,7 +67,7 @@ ldbm_back_operational(
 
                hs = has_children( op->o_bd, rs->sr_entry );
                *ap = slap_operational_hasSubordinate( hs );
-               assert( *ap );
+               assert( *ap != NULL );
 
                ap = &(*ap)->a_next;
        }