]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#2467 NULL pointer check
authorHoward Chu <hyc@openldap.org>
Fri, 25 Apr 2003 10:30:00 +0000 (10:30 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 25 Apr 2003 10:30:00 +0000 (10:30 +0000)
servers/slapd/back-bdb/attribute.c
servers/slapd/back-bdb/group.c

index f5cbdf7577a693ecd4900d8ec6fd8c3332e6c71b..6221b042aece71a5102a134ad1548b7fdc726db6 100644 (file)
@@ -112,7 +112,7 @@ dn2entry_retry:
                        ldap_pvt_thread_yield();
                        goto dn2entry_retry;
                default:
-                       boi->boi_err = rc;
+                       if ( boi ) boi->boi_err = rc;
                        if ( free_lock_id ) {
                                LOCK_ID_FREE( bdb->bi_dbenv, locker );
                        }
index ddb23f705586fb755f80eac441a5cf4fa7fa022e..4b49e41f49640183280eb2f3fcbf408df9578509 100644 (file)
@@ -109,7 +109,7 @@ dn2entry_retry:
                /* can we find group entry */
                rc = bdb_dn2entry_r( be, txn, gr_ndn, &e, NULL, 0, locker, &lock ); 
                if( rc ) {
-                       boi->boi_err = rc;
+                       if ( boi ) boi->boi_err = rc;
                        if ( rc == DB_LOCK_DEADLOCK || rc == DB_LOCK_NOTGRANTED ) {
                                if ( txn ) {
                                /* must let owning txn abort, but our result