/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2011 The OpenLDAP Foundation.
+ * Copyright 1998-2012 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
{
unsigned char *ptr = (unsigned char *)eh->bv.bv_val;
+ /* Some overlays can create empty entries
+ * so don't check for zeros here.
+ */
eh->nattrs = entry_getlen(&ptr);
- if ( !eh->nattrs ) {
- Debug( LDAP_DEBUG_ANY,
- "entry_header: attribute count was zero\n", 0, 0, 0);
- return LDAP_OTHER;
- }
eh->nvals = entry_getlen(&ptr);
- if ( !eh->nvals ) {
- Debug( LDAP_DEBUG_ANY,
- "entry_header: value count was zero\n", 0, 0, 0);
- return LDAP_OTHER;
- }
eh->data = (char *)ptr;
return LDAP_SUCCESS;
}