]> git.sur5r.net Git - openldap/commitdiff
ITS#5189 recognize ENOMEM
authorHoward Chu <hyc@openldap.org>
Tue, 23 Oct 2007 00:03:56 +0000 (00:03 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 23 Oct 2007 00:03:56 +0000 (00:03 +0000)
servers/slapd/back-bdb/index.c

index e193dae30d90e5ab122931421e12b28f2dbe0ac5..9059b9a4d2315eaaef76dd9cd2945ae4013ab0fb 100644 (file)
@@ -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;
        }