From: Pierangelo Masarati Date: Tue, 2 Sep 2008 20:58:34 +0000 (+0000) Subject: don't dereference NULL pointers (ITS#5676) X-Git-Tag: ACLCHECK_0~1396 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=549134d514516cde16df5ce15fa99fa68b802a03;p=openldap don't dereference NULL pointers (ITS#5676) --- diff --git a/servers/slapd/back-bdb/id2entry.c b/servers/slapd/back-bdb/id2entry.c index 61e34ae47f..79c6f88a23 100644 --- a/servers/slapd/back-bdb/id2entry.c +++ b/servers/slapd/back-bdb/id2entry.c @@ -355,7 +355,7 @@ dn2entry_retry: case DB_LOCK_NOTGRANTED: /* the txn must abort and retry */ if ( txn ) { - boi->boi_err = rc; + if ( boi ) boi->boi_err = rc; return LDAP_BUSY; } ldap_pvt_thread_yield();