]> git.sur5r.net Git - openldap/commitdiff
More for -q tool mode
authorHoward Chu <hyc@openldap.org>
Thu, 13 Dec 2007 08:02:40 +0000 (08:02 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 13 Dec 2007 08:02:40 +0000 (08:02 +0000)
servers/slapd/back-bdb/dn2id.c

index d4462365ceb8a47e68266bd5e16900c8f5cfc899..7cf12c0bbe7e4501552f18eb0ec52df77e9b728b 100644 (file)
@@ -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