]> git.sur5r.net Git - openldap/commitdiff
don't dereference NULL pointers
authorQuanah Gibson-Mount <quanah@openldap.org>
Wed, 3 Sep 2008 23:52:50 +0000 (23:52 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 3 Sep 2008 23:52:50 +0000 (23:52 +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();