Commit 67549a56 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#2467 NULL pointer check

parent c4ddbaf8
......@@ -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 );
}
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment