]> git.sur5r.net Git - openldap/commitdiff
don't dereference NULL pointers (ITS#5676)
authorPierangelo Masarati <ando@openldap.org>
Tue, 2 Sep 2008 20:58:34 +0000 (20:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 2 Sep 2008 20:58:34 +0000 (20:58 +0000)
servers/slapd/back-bdb/id2entry.c

index 61e34ae47ff8423cae30d939e3a88e965dd4aedc..79c6f88a23fedc6e15a14004334dbb5f7a9220ae 100644 (file)
@@ -355,7 +355,7 @@ dn2entry_retry:
        case DB_LOCK_NOTGRANTED:
                /* the txn must abort and retry */
                if ( txn ) {
-                       boi->boi_err = rc;
+                       if ( boi ) boi->boi_err = rc;
                        return LDAP_BUSY;
                }
                ldap_pvt_thread_yield();