From 9965fc5f6011b93cd0cc4eaff30e109971c84ac0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 23 Oct 2007 00:03:56 +0000 Subject: [PATCH] ITS#5189 recognize ENOMEM --- servers/slapd/back-bdb/index.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/index.c b/servers/slapd/back-bdb/index.c index e193dae30d..9059b9a4d2 100644 --- a/servers/slapd/back-bdb/index.c +++ b/servers/slapd/back-bdb/index.c @@ -288,7 +288,11 @@ done: case DB_LOCK_DEADLOCK: case DB_LOCK_NOTGRANTED: break; - /* Anything else is bad news */ + /* BDB also returns standard errno values */ + case ENOMEM: + rc = LDAP_NO_MEMORY; + break; + /* Don't let any other BDB-specific errors thru */ default: rc = LDAP_OTHER; } -- 2.39.5