]> git.sur5r.net Git - openldap/commitdiff
ITS#2467 NULL pointer check
authorHoward Chu <hyc@openldap.org>
Fri, 25 Apr 2003 10:27:55 +0000 (10:27 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 25 Apr 2003 10:27:55 +0000 (10:27 +0000)
servers/slapd/back-bdb/id2entry.c

index 6a97c0e27cb9af8bc84f95271e269ccc7244a3b3..492af33d7cd30016f555e4fa0421f548d60b864d 100644 (file)
@@ -291,7 +291,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 );
                }