From 549134d514516cde16df5ce15fa99fa68b802a03 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 2 Sep 2008 20:58:34 +0000 Subject: [PATCH] don't dereference NULL pointers (ITS#5676) --- servers/slapd/back-bdb/id2entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5