From: Howard Chu Date: Thu, 13 Dec 2007 08:02:40 +0000 (+0000) Subject: More for -q tool mode X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~322 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23116be5aef2880cfbdb998778070c6813f2f130;p=openldap More for -q tool mode --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index d4462365ce..7cf12c0bbe 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -33,6 +33,9 @@ bdb_dn2id_lock( struct bdb_info *bdb, struct berval *dn, DBT lockobj; int db_rw; + if (!locker) + return 0; + if (rw) db_rw = DB_LOCK_WRITE; else