From: Howard Chu Date: Tue, 23 Oct 2007 00:03:56 +0000 (+0000) Subject: ITS#5189 recognize ENOMEM X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~490 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9965fc5f6011b93cd0cc4eaff30e109971c84ac0;p=openldap ITS#5189 recognize ENOMEM --- 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; }