ITS#5189 recognize ENOMEM

This commit is contained in:
Howard Chu 2007-10-23 00:03:56 +00:00
parent 7404384766
commit 9965fc5f60

View 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;
}