/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2015 The OpenLDAP Foundation.
+ * Copyright 1998-2018 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
}
#endif
+ if ( *at == NULL ) {
+ return 0;
+ }
+
*at = LDAP_STAILQ_NEXT(*at,sat_next);
return (*at != NULL);
*err = cname;
if ( !at->at_usage && at->at_no_user_mod ) {
- /* user attribute must be modifable */
+ /* user attribute must be modifiable */
code = SLAP_SCHERR_ATTR_BAD_USAGE;
goto error_return;
}
/*
* Inherit definitions from superiors. We only check the
* direct superior since that one has already inherited from
- * its own superiorss
+ * its own superiors
*/
if ( sat->sat_sup ) {
Syntax *syn = syn_find(sat->sat_sup->sat_syntax->ssyn_oid);